From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31012 invoked by alias); 15 Sep 2013 12:07:48 -0000 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 Received: (qmail 30836 invoked by uid 48); 15 Sep 2013 12:07:41 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58425] Finalization: Segfault at runtime Date: Sun, 15 Sep 2013 12:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: wrong-code 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg01087.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58425 --- Comment #1 from Dominique d'Humieres --- Works for me: [macbook] f90/bug% gfcc ~/test/Rouson/ssdSource/chapter05/hermetic/hermetic.F90 -c -Ofast [macbook] f90/bug% gfcc ~/test/Rouson/ssdSource/chapter05/hermetic/vortex.F90 -c -Ofast [macbook] f90/bug% gfcc ~/test/Rouson/ssdSource/chapter05/hermetic/main.F90 hermetic.o vortex.o -Ofast [macbook] f90/bug% a.out 1.00000000 0.00000000 0.00000000 0.707106769 0.707106769 0.00000000 -4.37113883E-08 1.00000000 0.00000000 -0.707106769 0.707106769 0.00000000 -1.00000000 -8.74227766E-08 0.00000000 -0.707106650 -0.707106888 0.00000000 1.19248806E-08 -1.00000000 0.00000000 0.707107008 -0.707106531 0.00000000 [macbook] f90/bug% gfcc -v Using built-in specs. COLLECT_GCC=gfcc COLLECT_LTO_WRAPPER=/opt/gcc/gcc4.9c/libexec/gcc/x86_64-apple-darwin10.8.0/4.9.0/lto-wrapper Target: x86_64-apple-darwin10.8.0 Configured with: ../_clean/configure --prefix=/opt/gcc/gcc4.9c --enable-languages=c,c++,fortran,objc,obj-c++,java,ada,lto --with-gmp=/opt/mp --with-system-zlib --with-isl=/opt/mp --enable-lto --enable-plugin Thread model: posix gcc version 4.9.0 20130914 (experimental) [trunk revision 202590] (GCC) I also get the same output with -flto added or without -Ofast.