[LLVMbugs] [Bug 6524] New: opt -internalize breaks C++ initialization (compiling with clang)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 6 08:43:43 PST 2010


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: unassignedbugs at nondot.org
        ReportedBy: sveina at gmail.com
                CC: llvmbugs at cs.uiuc.edu


#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.



More information about the llvm-bugs mailing list