https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #10 from Jonathan Wakely ---
(In reply to Jonathan Wakely from comment #8)
> I have a patch for std::thread which would mean it doesn't use shared_ptr,
> so this wouldn't be a problem even if you don't use the same arm version.
This
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
Yichao Yu changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #8 from Jonathan Wakely ---
I have a patch for std::thread which would mean it doesn't use shared_ptr, so
this wouldn't be a problem even if you don't use the same arm version.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #7 from Jonathan Wakely ---
It's supported fine, but you need to compile your code that uses std::thread so
it is compatible with the libstdc++.so library you link to.
If libstdc++ is compiled to use atomic operations in shared_ptr t
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #6 from Yichao Yu ---
Adding `-march=armv7-a` indeed fixes the issue. Thanks.
Does this mean that `std::thread` is not supported on armv6? Would be nice to
have a warning/error if it is possible to detect this.
FWIW, `clang -march=a
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #5 from Andrew Pinski ---
arm-* defaults to earlier arm than v7 which does not have atomics in the ISA.
Your native compiler most likely defaulted to armv7 which uses the atomic
instructions directly.
Can you provide the output of g
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #4 from Yichao Yu ---
Created attachment 34905
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34905&action=edit
config.log of a more recent snapshot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #3 from Yichao Yu ---
I didn't keep the config.log file used to compile the gcc I used to compile the
binary attached but here's the config.log of a slightly later snapshot
(20150204, which is the same used for the arm native compiler
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #2 from Yichao Yu ---
ARM environment is ArchLinuxARM (armv7h)[1] on a Xilinx Zynq 0702 Eval board
which has a dual-core Cortex-a9 processor.
[1] http://archlinuxarm.org/packages
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65255
--- Comment #1 from Yichao Yu ---
Created attachment 34904
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34904&action=edit
Source and output programs
10 matches
Mail list logo