From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11771 invoked by alias); 23 Jul 2010 01:56:06 -0000 Received: (qmail 9696 invoked by uid 48); 23 Jul 2010 01:55:52 -0000 Date: Fri, 23 Jul 2010 01:56:00 -0000 Subject: [Bug lto/45037] New: lto1 ICEs when linking cns_solve X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" 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: 2010-07/txt/msg02453.txt.bz2 Current gcc trunk (but not gcc 4.5.1) ICEs when linking cns_solve using -O2 -fwhopr -fwholeprogram. The reduced test case is attached and crashes as... [MacPro:~/badlinkdir] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr -fwhole-program --save-temps array_reduced.f [MacPro:~/badlinkdir] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr -fwhole-program --save-temps cns_reduced.f [MacPro:~/badlinkdir] howarth% gfortran -c -fdefault-integer-8 -w -O2 -fwhopr -fwhole-program --save-temps genic_reduced.f [MacPro:~/badlinkdir] howarth% gfortran -r -nostdlib -o cns_solve-1007222053.exe array_reduced.o cns_reduced.o genic_reduced.o -DINTEGER='long int' -DCNS_ARCH_TYPE_LINUX -fdefault-integer-8 -O2 -fwhopr -fwhole-program -w In file included from :0:0: array_reduced.f: In function ‘find52_.constprop.0’: array_reduced.f:5:0: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. lto-wrapper: gfortran returned 1 exit status collect2: lto-wrapper returned 1 exit status The lto1 ICE doesn't occur if the optimization is reduced to -O1 or if the -fwhole-program flag is omitted. -- Summary: lto1 ICEs when linking cns_solve Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: howarth at nitro dot med dot uc dot edu 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=45037