https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
Jonathan Wakely changed:
What|Removed |Added
Status|REOPENED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #19 from Jonathan Wakely ---
A prototype implementation that doesn't rely on atomics:
https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01526.html
https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01546.html
(both patches are needed).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
Philip Deegan changed:
What|Removed |Added
CC||philip.deegan at gmail dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #14 from Jonathan Wakely ---
(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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #15 from Philip Deegan ---
Hi, thanks for the quick reply.
Yeah I tried with atomic, not much different shared or static, is something
special required when building gcc/libc?
Linking with --verbose results in:
-lmy_lib -latomic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #16 from Jonathan Wakely ---
It should work if you build GCC for ARMv7, i.e. configure --with-arch=armv7-a,
but that changes the instruction set used for all the target libraries.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #18 from Jonathan Wakely ---
(In reply to Philip Deegan from comment #17)
> However, if a thread calls std::current_exception it segfaults in
> libstdc++-v3/libsupc++/eh_ptr.cc line 190:
> __cxa_exception *header =
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
--- Comment #17 from Philip Deegan ---
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58938
Jonathan Wakely redi at gcc dot gnu.org changed:
What|Removed |Added
Status|RESOLVED|REOPENED