The Polyhedron 2005 benchmark air.f90 is miscompiled when -O1/-O2/-O3 -fgraphite-identity -floop-interchange is used such that the program outputs...
AIRFLOW IN A BOX Version 2.0 (c) Hanley Innovations 1995 1.00000000000000002E-002 0.29999999999999999 10.000000000000000 0.10000000000000001 0 272.76999999999998 272.76999999999998 272.76999999999998 272.76999999999998 0.0000000000000000 11 12 X-DATA 1 0.0000000000000000 0.10000000000000001 4 2 5.00000000000000028E-002 0.22000000000000000 4 3 0.10000000000000001 0.29999999999999999 4 4 0.20000000000000001 0.40000000000000002 4 5 0.29999999999999999 0.50000000000000000 4 6 0.40000000000000002 0.59999999999999998 4 7 0.50000000000000000 0.69999999999999996 4 8 0.59999999999999998 0.80000000000000004 4 9 0.69999999999999996 0.90000000000000002 4 10 0.80000000000000004 0.96999999999999997 4 11 0.90000000000000002 1.0000000000000000 4 Y-DATA 0.0000000000000000 0.10000000000000001 4 4.00000000000000008E-002 0.14999999999999999 4 8.00000000000000017E-002 0.20000000000000001 4 0.14999999999999999 0.29999999999999999 4 0.20000000000000001 0.40000000000000002 4 0.29999999999999999 0.50000000000000000 4 0.40000000000000002 0.59999999999999998 4 0.50000000000000000 0.69999999999999996 4 0.59999999999999998 0.80000000000000004 4 0.69999999999999996 0.89000000000000001 4 0.80000000000000004 0.94999999999999996 4 0.94999999999999996 1.0000000000000000 4 ITERATION# TIME FINAL MASS RESIDUAL 14 100.000043187820 0.01000000 NaN deltat, final t, iterations 100.00000000000000 100.00004318782042 14 14 NaN when executed. This is seen with r150709 with the compiler specs of... Target: x86_64-apple-darwin10 Configured with: ../gcc-4.5-20090812/configure --prefix=/sw --prefix=/sw/lib/gcc4.5 --mandir=/sw/share/man --infodir=/sw/share/info --enable-languages=c,c++,fortran,objc,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --disable-libjava-multilib --build=x86_64-apple-darwin10 --host=x86_64-apple-darwin10 --target=x86_64-apple-darwin10 Thread model: posix gcc version 4.5.0 20090812 (experimental) (GCC) -- Summary: -O1/-O2/-O3 -fgraphite-identity -floop-interchange miscompiles air.f90 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: howarth at nitro dot med dot uc dot edu GCC build triplet: x86_64-apple-darwin10 GCC host triplet: x86_64-apple-darwin10 GCC target triplet: x86_64-apple-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41051