https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91491
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Richard Biener from comment #3) > Eh, "interesting". Thanks for the clarifications. > > I suppose you did things like running under valgrind or compiling with > -fsanitize=address. The most obvious thing I expect from -fno-tree-pre > is stack layout changes which then smells like some bogus stack smashing > going on. Can you try building gtestutils.c with > -O2 -fno-optimize-sibling-calls? That or there is some other undefined behavior. Try also -fno-strict-aliasing.