This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/58938] std::exception_ptr is missing on architectures with incomplete atomic int support
- From: "philip.deegan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Dec 2015 19:23:17 +0000
- Subject: [Bug libstdc++/58938] std::exception_ptr is missing on architectures with incomplete atomic int support
- Auto-submitted: auto-generated
- References: <bug-58938-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #17 from Philip Deegan <philip.deegan at gmail dot com> ---
Building bin-utils/gcc/glibc with --with-arch=armv7-a did the trick.
Atomic is not required.
However, if a thread calls std::current_exception it segfaults in
libstdc++-v3/libsupc++/eh_ptr.cc line 190:
__cxa_exception *header = globals->caughtExceptions;
Can only test static pthread linking currently with Wl,--whole-archive
-lpthread -Wl,--no-whole-archive