https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103386
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Ever confirmed|0 |1 Last reconfirmed| |2021-11-23 Component|rtl-optimization |middle-end Keywords| |wrong-code --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- What GCC are you starting with? Because you are building stage 1 compiler with "-O3 -ftree-vectorize -fomit-frame-pointer -mcpu=neoverse-n1 -mtune=neoverse-n1 -fno-plt -fipa-pta -funsafe-math-optimizations -funsafe-loop-optimizations -fdevirtualize-at-ltrans -floop-nest-optimize -fgraphite-identity -floop-interchange" I think both "-fipa-pta" and "-fgraphite-identity" have known issues which could be causing issues here. Plus GCC is not normally compiled with "-funsafe-math-optimizations" or "-funsafe-loop-optimizations".