https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81877
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Status|UNCONFIRMED |NEW Known to work| |6.4.0 Keywords| |wrong-code Last reconfirmed| |2017-08-17 Component|fortran |ipa CC| |marxin at gcc dot gnu.org, | |mliska at suse dot cz, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Summary|[7 Regression] Incorrect |[7/8 Regression] Incorrect |results with lto and |results with lto and |-fipa-cp and -fipa-cp-clone |-fipa-cp and -fipa-cp-clone Target Milestone|--- |7.3 Known to fail| |7.1.0, 8.0 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. With -O3 -fipa-cp-clone -fipa-cp -flto it works (I think -O3 already enables those). Fails with -O[12] -fwhole-program -fipa-cp -fipa-cp-clone (no -flto needed).