[LLVMbugs] [Bug 5007] New: llvm-g++ -flto generates invalid object files

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 19 01:14:43 PDT 2009


           Summary: llvm-g++ -flto generates invalid object files
           Product: tools
           Version: 2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-g++
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bero at arklinux.org
                CC: llvmbugs at cs.uiuc.edu

In current llvm and llvm-gcc 2.6 branches, llvm-g++ -flto generates invalid
object files:

$ cat test.cpp
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
    cerr << "Microsoft sucks!" << endl;
$ llvm-g++ -flto test.cpp
/tmp/ccboFcxx.o: file not recognized: File format not recognized
$ llvm-g++ -flto -c test.cpp -o test.o
$ file test.o
test.o: data

Without -flto, it works as expected.
The size of test.o with -flto is almost twice that of test.o without -flto.

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