[llvm-bugs] [Bug 39744] libcxxabi incompatible with libsupc++

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Nov 21 14:52:17 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39744

Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric at efcs.ca
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Eric Fiselier <eric at efcs.ca> ---
libc++abi and libsupc++ are two implementations of the same itanium runtime
library specification.

As such, they necessarily define the same set of symbols with the exact same
mangling. Take for example the vtable for  __cxxabiv1::__si_class_type_info.

To make the vtable for this type ABI compatible (and "ODR compatible"),
libc++abi and libsupc++ would have to implement the exact same set of
functions, with the exact same function bodies, compiled from the same source
code. This is not possible.


Closing as WONTFIX.

PS. If you want to mix libraries compiled against libc++ and libstdc++, you
should compile your version of libc++ against libsupc++ [1].

[1]
http://libcxx.llvm.org/docs/BuildingLibcxx.html#using-alternate-abi-libraries

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181121/913082ad/attachment.html>


More information about the llvm-bugs mailing list