At revision 155425 the executable for induct.f90 compiled with " -O3 -floop-block" gives:
... Maximum wand/quad abs rel mutual inductance = 1.84138324899744549E-002 ... instead of ... Maximum wand/quad abs rel mutual inductance = 5.95379428444659381E-002 ... when compiled with "-O2 -floop-block". Note that the wrong code runs in ~8.5s, while the fastest right code runs in ~14s. -- Summary: Wrong-code for induct.f90 with " -O3 -floop-block" Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dominiq at lps dot ens dot fr 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=42479