Skip to content

Warning: deRefStablePtr fails to inline

GCC refuses to inline it, and it has a point.

In file included from includes/Rts.h:237,

                 from rts\Interpreter.c:8:0: error:
rts\Interpreter.c: In function 'interpretBCO':

includes\rts\StablePtr.h:32:8: error:
     warning: inlining failed in call to 'deRefStablePtr': call is unlikely and code size would grow [-Winline]
       32 | StgPtr deRefStablePtr(StgStablePtr sp)
          |        ^~~~~~~~~~~~~~
   |
32 | StgPtr deRefStablePtr(StgStablePtr sp)
   |        ^

rts\Interpreter.c:1112:45: error:
     note: called from here
     1112 |                   ioAction = (StgClosure *) deRefStablePtr (
          |                                             ^~~~~~~~~~~~~~~~
     1113 |                       rts_breakpoint_io_action);
          |                       ~~~~~~~~~~~~~~~~~~~~~~~~~
     |
1112 |                   ioAction = (StgClosure *) deRefStablePtr (
     |                                             ^
rts\Interpreter.c: At top level:
Edited by Andreas Klebinger
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information