https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112550
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sjames at gcc dot gnu.org --- Comment #1 from Sam James <sjames at gcc dot gnu.org> --- Not sure if I'm misunderstanding you, but it's not trivial to go from -O0 and -O1 and it's "normal" to have a difference in output in either the case of: a) UB, or b) a compiler bug (miscompilation).