This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29975] [meta-bugs] ICEs with CP2K
- From: "jv244 at cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2007 08:24:46 -0000
- Subject: [Bug fortran/29975] [meta-bugs] ICEs with CP2K
- References: <bug-29975-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #119 from jv244 at cam dot ac dot uk 2007-06-27 08:24 -------
Testing gcc 4.2.0 I unfortunately found that it miscompiles CP2K.
The following testcase:
tests/DFTB/regtest-scc/h2o-1.inp
yields incorrect results. Should be similar to:
Total energy: -130.561836
whereas one gets
Total energy: -127.642599
This is a very large difference beyond numerics. The miscompilation is
triggered by:
# BUG
FCFLAGS = -O3 -ffast-math -ftree-vectorize -march=native
but not
# OK
FCFLAGS = -O3 -ffast-math -march=native
# OK
FCFLAGS = -O3 -funroll-loops -ftree-vectorize -march=native
I might try to find out which module gets miscompiled, but this could be a bit
of a slow process.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29975