http://llvm.org/bugs/show_bug.cgi?id=5007
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs