[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


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105910

--- 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
error: 
test4.c:4:13: error: argument value 524288 is outside the valid range [0,
65535]

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


More information about the Gcc-bugs mailing list