Commit 635442bf by Jakub Jelinek Committed by Jakub Jelinek

re PR libstdc++/54172 (__cxa_guard_acquire thread-safety issue)

	PR libstdc++/54172
	* libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
	argument of the first __atomic_compare_exchange_n.

From-SVN: r191190
parent 6211feb0
2012-09-11 Jakub Jelinek <jakub@redhat.com>
PR libstdc++/54172
* libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
argument of the first __atomic_compare_exchange_n.
2012-09-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2012-09-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jonathan Wakely <jwakely.gcc@gmail.com> Jonathan Wakely <jwakely.gcc@gmail.com>
......
...@@ -253,7 +253,7 @@ namespace __cxxabiv1 ...@@ -253,7 +253,7 @@ namespace __cxxabiv1
int expected(0); int expected(0);
if (__atomic_compare_exchange_n(gi, &expected, pending_bit, false, if (__atomic_compare_exchange_n(gi, &expected, pending_bit, false,
__ATOMIC_ACQ_REL, __ATOMIC_ACQ_REL,
__ATOMIC_RELAXED)) __ATOMIC_ACQUIRE))
{ {
// This thread should do the initialization. // This thread should do the initialization.
return 1; return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment