[LLVMbugs] [Bug 13054] New: -O4 causes clang++ to generate the wrong object module format

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 7 16:42:31 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13054

             Bug #: 13054
           Summary: -O4 causes clang++ to generate the wrong object module
                    format
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


On 64 bit ubtunu linux, the clang++ generates the wrong object module format
with -O4


rkotler at ubuntu-rkotler:~/Stockfish/src$ clang++ hello.cxx -O4 -c
rkotler at ubuntu-rkotler:~/Stockfish/src$ objdump -f hello.o
objdump: hello.o: File format not recognized
rkotler at ubuntu-rkotler:~/Stockfish/src$ clang++ hello.cxx -O3 -c
rkotler at ubuntu-rkotler:~/Stockfish/src$ objdump -f hello.o

hello.o:     file format elf64-x86-64
architecture: i386:x86-64, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x0000000000000000

rkotler at ubuntu-rkotler:~/Stockfish/src$

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list