No testcase other than running CP2K, but the code appears to be miscompiled (i.e. segfaults) at -O3, while -O2 goes fine. The last known svn version that was OK was rev. 151454, while the first known failing was 151525. The miscompiled file is pair_potentials.F
Any suggestions on how to narrow down the problem? -- Summary: [4.5 Regression] miscompilation of CP2K at -O3 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jv244 at cam dot ac dot uk http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41312