https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91491
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- 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?