https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202
--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- (In reply to Aldy Hernandez from comment #6) > Not looking at this yet, but disabling jump threading from all passes (dom > included) makes the problem go away: > > $ ./xgcc -B./ a.c -w -O2 -fno-thread-jumps && ./a.out > element 1 > element 2 > element 3 a.c is main_loop_simpler.c