http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48412
Summary: [4.7 Regression] CP2K miscompiled due to some Fortran
frontend pass
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: [email protected]
ReportedBy: [email protected]
after the latest fix, CP2K now compiles at -O1, but is miscompiled. Manually
disabling the frontend passes like:
gfc_run_passes (gfc_namespace *ns)
{
if (0 && optimize)
{
fixes the issue (and also running at -O0). The compiler was working fine before
the function optimization patch that went in a couple of days ago, so I suspect
that's the cause.
I have no other testcase than compiling CP2K and running an input like
cp2k/tests/QS/H2O.inp.