This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/55139] New: __atomic store does not support __ATOMIC_HLE_RELEASE
- From: "andi-gcc at firstfloor dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 30 Oct 2012 16:59:25 +0000
- Subject: [Bug target/55139] New: __atomic store does not support __ATOMIC_HLE_RELEASE
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55139
Bug #: 55139
Summary: __atomic store does not support __ATOMIC_HLE_RELEASE
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: andi-gcc@firstfloor.org
volatile int slock;
void unlock(void)
{
int free_val = 1;
__atomic_store(&slock, &free_val,
__ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
}
spin.c: In function 'unlock':
spin.c:6:16: warning: invalid memory model argument 3 of '__atomic_store'
[-Winvalid-memory-model]
__atomic_store(&slock, &free_val, __ATOMIC_RELEASE|__ATOMIC_HLE_RELEASE);
But XRELEASE MOV ... is allowed in TSX.