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: "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, 08 Dec 2015 14:38:08 +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 #14 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Philip Deegan from comment #13)
> How would one fix this on ARMv7-A for instance?
>
> Compiling with "-march=armv7-a" on arm-linux-gnueabihf results in a link
> error for exception_ptr/current_exception/rethrow_exception etc.
>
> gcc_5.3_ARM32HF/bin/gcc -dM - -E -march=armv7-a < /dev/null | grep
> ATOMIC_INT_LOCK_FREE
> #define __GCC_ATOMIC_INT_LOCK_FREE 2
Did you try linking with -latomic ?