[Bug middle-end/105910] ICE: with -O1 optimization level and code calling __builtin_return_address

k.even-mendoza at imperial dot ac.uk gcc-bugzilla@gcc.gnu.org
Thu Jun 9 17:31:06 GMT 2022


--- Comment #2 from Karine EM <k.even-mendoza at imperial dot ac.uk> ---
It is probably the case: gcc-10 just compiles the program (as it is a UB) which
crashes with "Abort" when trying to actually run this program; llvm returns an
test4.c:4:13: error: argument value 524288 is outside the valid range [0,

I think instead of an ICE, any of the options is a good solution.

More information about the Gcc-bugs mailing list