Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 467314 Details for
Bug 612932
dev-qt/qtcore-5.7.1 - atomic_base.h:577:70: error: failure memory model cannot be stronger than success memory model for '__atomic_compare_exchange'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Upstream patch
file_612932.txt (text/plain), 2.33 KB, created by
Matthew Millar
on 2017-03-17 16:56:31 UTC
(
hide
)
Description:
Upstream patch
Filename:
MIME Type:
Creator:
Matthew Millar
Created:
2017-03-17 16:56:31 UTC
Size:
2.33 KB
patch
obsolete
>index bb49aae..d6731ec 100644 >--- a/src/corelib/arch/qatomic_cxx11.h >+++ b/src/corelib/arch/qatomic_cxx11.h >@@ -153,7 +153,7 @@ template <typename X> struct QAtomicOps > template <typename T> > static bool testAndSetRelaxed(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW > { >- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed); >+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_relaxed, std::memory_order_relaxed); > if (currentValue) > *currentValue = expectedValue; > return tmp; >@@ -162,7 +162,7 @@ template <typename X> struct QAtomicOps > template <typename T> > static bool testAndSetAcquire(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW > { >- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire); >+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acquire, std::memory_order_acquire); > if (currentValue) > *currentValue = expectedValue; > return tmp; >@@ -171,7 +171,7 @@ template <typename X> struct QAtomicOps > template <typename T> > static bool testAndSetRelease(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW > { >- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release); >+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_release, std::memory_order_relaxed); > if (currentValue) > *currentValue = expectedValue; > return tmp; >@@ -180,7 +180,7 @@ template <typename X> struct QAtomicOps > template <typename T> > static bool testAndSetOrdered(std::atomic<T> &_q_value, T expectedValue, T newValue, T *currentValue = Q_NULLPTR) Q_DECL_NOTHROW > { >- bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel); >+ bool tmp = _q_value.compare_exchange_strong(expectedValue, newValue, std::memory_order_acq_rel, std::memory_order_acquire); > if (currentValue) > *currentValue = expectedValue; > return tmp;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 612932
: 467314