Skip to content

Some GCC versions warn about failed inlines

gcc 4.8.4 on Ubuntu 14.04 warns about failed inlinings. I'm not really sure what to do about this at the moment, so I'm going to leave this here.

In file included from rts/Schedule.h:15:0: error:
    0,                                                                                                                                                                            from rts/Capability.c:23:                                                                                                               In function ‘initCapability’:                                                                                                                                                                                                                                                                                             rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                                                                    In function ‘yieldCapability’:                                                                                                                                                                                                                                                                                            rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                                                                    In function ‘shutdownCapabilities’:                                                                                                                                                                                                                                                                                       rts/Trace.h:742:20: error:                                                                                                                                        warning: inlining failed in call to ‘traceSparkCounters.part.10’: call is unlikely and code size would grow [-Winline]                                       INLINE_HEADER void traceSparkCounters(Capability *cap STG_UNUSED)                                                                                                               ^                                                                                                                                    cc1: warning: called from here [-Winline]                                                                   
Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC simonmar
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information