public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48096] New: gcc.dg/tree-prof/bb-reorg.c compilation,  -fprofile-use -D_PROFILE_USE fails with Xcode 4.0
@ 2011-03-12 21:09 howarth at nitro dot med.uc.edu
  2011-03-12 21:20 ` [Bug target/48096] " howarth at nitro dot med.uc.edu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-03-12 21:09 UTC (permalink / raw)
  To: gcc-bugs

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<x86_64>::parse(mach_o::relocatable::ParserOptions
const&) + 1097^M
2  0x10001ed87  mach_o::relocatable::Parser<x86_64>::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<x86_64>::parse(mach_o::relocatable::ParserOptions
const&) + 1097^M
2  0x10001ed87  mach_o::relocatable::Parser<x86_64>::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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-03-01 22:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12 21:09 [Bug target/48096] New: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE fails with Xcode 4.0 howarth at nitro dot med.uc.edu
2011-03-12 21:20 ` [Bug target/48096] " howarth at nitro dot med.uc.edu
2011-03-12 21:21 ` howarth at nitro dot med.uc.edu
2011-03-17 13:34 ` howarth at nitro dot med.uc.edu
2011-03-17 23:38 ` howarth at nitro dot med.uc.edu
2011-03-17 23:41 ` howarth at nitro dot med.uc.edu
2011-03-18  0:29 ` howarth at nitro dot med.uc.edu
2011-03-18  8:10 ` jakub at gcc dot gnu.org
2012-03-01 20:09 ` howarth at nitro dot med.uc.edu
2012-03-01 22:46 ` mrs at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).