http://llvm.org/bugs/show_bug.cgi?id=6524
Summary: opt -internalize breaks C++ initialization (compiling
with clang)
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
#include <fstream>
int main() {
ofstream f;
}
===
Compiling this with clang -c -o works.bc -emit-llvm, it works correctly if then
directly llc'd and assembled/linked with gcc.
However, if piped through opt -internalize, it segfaults in code called from
_init; valgrind reported an access to address 0xE, which sounds to me like
something was not dynamically linked which should have been.
Any other opt passes work fine, just not -internalize.
--
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