https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100724
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |7.5.0 Ever confirmed|0 |1 Keywords| |link-failure, wrong-code Last reconfirmed| |2021-05-23 CC| |anlauf at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #1 from anlauf at gcc dot gnu.org --- Interesting bug. With optimization enabled (e.g. -O) I find a linking failure with 8.5.0 and newer, except when I add -ftlo. With -fwhole-program -O -flto the program seems to work up to 11.1, but fails with 12.0 (hangs). With -fwhole-program -O0 it also hangs with 12.0, but not with 11.1. So there are possibly two issues, a 12-regression and an 8+-regression.