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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 2 22:25:06 PDT 2010


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #7 from Chris Lattner <clattner at apple.com> 2010-04-03 00:25:05 CDT ---
internalize is working correctly.  The likely problem here is that it is
internalizing _ZTISo, whic is the typeinfo for basic_ostream.  Since libstdc++
defines its own version of this symbol and expects pointer comparisons between
them to work, all sorts of badness breaks out.  However, this is exactly what
internalize is supposed to do: seal off the edges of a fully contained program.
 Because you haven't statically linked in libstdc++ and haven't provided a
correct export list, you lose.

However, there is a bug here that doesn't manifest in this testcase:
available_externally functions should not be externalized.  I fixed this
theoretical issue in r100269.

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