• niteria's avatar
    Don't error on GCC inlining warning in rts · 93f40cb9
    niteria authored
    The warning for reference:
    ```
    rts/RaiseAsync.c: In function ‘throwToMsg’:
    
    rts/SMPClosureOps.h:65:0: error:
         error: inlining failed in call to ‘lockClosure’: call is unlikely
    and code size would grow
    
    rts/RaiseAsync.c:305:0: error:  error: called from here
    
    rts/SMPClosureOps.h:65:0: error:
         error: inlining failed in call to ‘lockClosure’: call is unlikely
    and code size would grow
    ```
    
    This warning triggers on `gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)`
    and it doesn't trigger with new GCCs.
    
    Test Plan: build ghc/rts
    
    Reviewers: bgamari, simonmar, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2353
    93f40cb9
warnings.mk 5.95 KB