This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/55006] [4.8 Regression] aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]