https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104446
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection Known to fail| |11.2.0, 9.1.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2022-02-08 Known to work| |8.1.0 Target Milestone|--- |9.5 Ever confirmed|0 |1 Component|c |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed reduced testcase w/o -finstrument-functions: That is only -O2 -m32 -mrtd is needed to produce the ICE. register volatile int a __asm__("%esp"); void f(void*); void f1(void*); void t () { f(__builtin_return_address(0)); a = 0; f1(__builtin_return_address(0)); } ---- CUT --- Note this works with the C++ front-end for some reason.