Skip to content

rts/sm/Evac.c:302:1: error: warning: inlining failed .. --param max-inline-insns-single limit reached

not sure it's a bug but it looks a bit scary:

when I build ghc-8.10.1 from source (with ghc-8.8.3), I am seeing this (several instances)

rts/sm/Evac.c: In function ‘evacuate’:

rts/sm/Evac.c:302:1: error:
     warning: inlining failed in call to ‘evacuate_large’: --param max-inline-insns-single limit reached [-Winline]
      302 | evacuate_large(StgPtr p)
          | ^~~~~~~~~~~~~~

the "error" is what scares me but apparently it's only treated as a warning, compilation continues and the resulting ghc seems to work fine.

This is on Fedora 32 with

$ gcc --version
gcc (GCC) 10.0.1 20200311 (Red Hat 10.0.1-0.9)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information