This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55006] [4.8 Regression] aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 21 Oct 2012 12:24:23 +0000
- Subject: [Bug tree-optimization/55006] [4.8 Regression] aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526
- Auto-submitted: auto-generated
- References: <bug-55006-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55006
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-10-21 12:24:23 UTC ---
Created attachment 28499
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28499
Compressed archive for aermod
The attachment contains the files needed to compile and run the test aermod.
The original source has been split in aermod_red.f90, wake_dfsn.f90, and
wake_dfsn2.f90 (the two subroutines that are miscompiled).
It can be used as
gfc -c -m64 -O2 -funroll-loops aermod_red.f90 wake_dfsn.f90 wake_dfsn2.f90
gfc aermod_red.o wake_dfsn.o wake_dfsn2.o
where gfc is gfortran at revision 192526 or later. This gives the miscompiled
code. If the files wake_dfsn.f90 and wake_dfsn2.f90 are then compiled with
revision 192525 or older (and same options), then the new executable is OK.