https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64065
Bug ID: 64065 Summary: [5 Regression] CP2K miscompilation at -O3 -flto Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: Joost.VandeVondele at mat dot ethz.ch Current trunk miscompiles cp2k at ' -flto=jobserver -fuse-linker-plugin -fno-prefetch-loop-arrays -O3 -march=native -funroll-loops -ffast-math' The last known good revision is r217995 and first bad is r218036 lto and -O3 are needed. As this involves lto, I don't think I can reduce the problem, I might try to identify a precise commit.