[Bug ipa/124985] Compiling gcc.dg/pr117245.c with -O -fno-tree-dse ICEs in in initialize_inlined_parameters in tree-inline.cc since r16-3747-gafa74d37e8170d

uecker at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 22 13:02:01 GMT 2026


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

--- Comment #4 from uecker at gcc dot gnu.org ---

The original test presumably came via fuzzing but I think it is fine. We
support calling nested functions via regular function pointer types which is
why we have the trampolines everyone hates nowadays.  But my previous change
turns off the generation of a trampoline for cases where a trampoline is not
actually required for the nested function (while also emitting a warning when a
trampoline is generated and the address of a trampoline is returned from the
parent function). I think I missed a case where the trampoline is still
required because the return type is variably modified. So I do not think this
is a middle-end bug.


More information about the Gcc-bugs mailing list