This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/78968] conflict between gnu's __cxa_thread_atexit and LLVM's/FreeBSD's implementation
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Jan 2017 13:18:45 +0000
- Subject: [Bug libstdc++/78968] conflict between gnu's __cxa_thread_atexit and LLVM's/FreeBSD's implementation
- Auto-submitted: auto-generated
- References: <bug-78968-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78968
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It seems entirely wrong for libc to be providing any __cxa entry point called
by the compiler, such as __cxa_thread_atexit. It should come from the C++
runtime, such as libsupc++, or libcxxabi, or FreeBSD's libcxxrt. We can work
around it, but it's still wrong.