From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21355 invoked by alias); 21 Oct 2012 12:24:50 -0000 Received: (qmail 21209 invoked by uid 48); 21 Oct 2012 12:24:25 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55006] [4.8 Regression] aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526 Date: Sun, 21 Oct 2012 12:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-10/txt/msg01865.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55006 --- Comment #1 from Dominique d'Humieres 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.