https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106187
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2022-07-04 Ever confirmed|0 |1 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Does it work with -fstrict-aliasing ? Does adding -fsanitize=address report anything? Please reduce it down to which file is being miscompiled at least. You can compile the objects with -O2 and do a bysection of the ones needing to be compiled with -O0.