This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/48096] New: gcc.dg/tree-prof/bb-reorg.c compilation, -fprofile-use -D_PROFILE_USE fails with Xcode 4.0


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]