From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26560 invoked by alias); 12 Mar 2011 21:09:08 -0000 Received: (qmail 26545 invoked by uid 22791); 12 Mar 2011 21:09:07 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 12 Mar 2011 21:08:13 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/48096] New: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE fails with Xcode 4.0 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu 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: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 12 Mar 2011 21:09:00 -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 X-SW-Source: 2011-03/txt/msg01270.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48096 Summary: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE fails with Xcode 4.0 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: howarth@nitro.med.uc.edu The new Xcode 4.0 linker causes the gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE test case to fail as follows... Running /sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110311/gcc/testsuite/gcc.dg/tree-prof/tree-prof.exp ...Executing on host: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/ /sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110311/gcc/testsuite/gcc.dg/tree-prof/bb-reorg .c -O2 -freorder-blocks-and-partition -fprofile-generate -D_PROFILE_GENERATE -lm -m64 -o /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/gcc/bb-reorg.x01 (timeout = 300) PASS: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-generate -D_PROFILE_GENERATE Setting LD_LIBRARY_PATH to :/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc::/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc PASS: gcc.dg/tree-prof/bb-reorg.c execution, -fprofile-generate -D_PROFILE_GENERATE Executing on host: /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/ /sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20110311/gcc/testsuite/gcc.dg/tree-prof/bb-reorg .c -O2 -freorder-blocks-and-partition -fprofile-use -D_PROFILE_USE -lm -m64 -o /sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/gcc/bb-reorg.x02 (timeout = 300) Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-123.2/src/ld/parsers/macho_relocatable_file.cpp, line 1512.^M 0 0x10001286c __assert_rtn + 76^M 1 0x100043bc9 mach_o::relocatable::Parser::parse(mach_o::relocatable::ParserOptions const&) + 1097^M 2 0x10001ed87 mach_o::relocatable::Parser::parse(unsigned char const*, unsigned long long, char const*, long, unsigned int, mach_o::relocatable::ParserOptions const&) + 295^M 3 0x1000183ef mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, unsigned int, mach_o::relocatable::ParserOptions const&) + 159^M 4 0x1000727a1 ld::tool::InputFiles::makeFile(Options::FileInfo const&) + 497^M 5 0x100073f79 ld::tool::InputFiles::InputFiles(Options&, char const**) + 697^M 6 0x100012a97 main + 311^M collect2: ld returned 1 exit status^M compiler exited with status 1 output is: Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-123.2/src/ld/parsers/macho_relocatable_file.cpp, line 1512.^M0 0x10001286c __assert_rtn + 76^M1 0x100043bc9 mach_o::relocatable::Parser::parse(mach_o::relocatable::ParserOptions const&) + 1097^M 2 0x10001ed87 mach_o::relocatable::Parser::parse(unsigned char const*, unsigned long long, char const*, long, unsigned int, mach_o::relocatable::ParserOptions const&) + 295^M 3 0x1000183ef mach_o::relocatable::parse(unsigned char const*, unsigned long long, char const*, long, unsigned int, mach_o::relocatable::ParserOptions const&) + 159^M 4 0x1000727a1 ld::tool::InputFiles::makeFile(Options::FileInfo const&) + 497^M 5 0x100073f79 ld::tool::InputFiles::InputFiles(Options&, char const**) + 697^M6 0x100012a97 main + 311^Mcollect2: ld returned 1 exit status^M FAIL: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE UNRESOLVED: gcc.dg/tree-prof/bb-reorg.c execution, -fprofile-use -D_PROFILE_USE Either we are generating invalid mach-o or have exposed a bug in Xcode 4.0's linker.