This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] libstdc++: Add mem_order_hle_acquire/release to atomic.h
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Andi Kleen <andi at firstfloor dot org>
- Cc: libstdc++ at gcc dot gnu dot org, Andi Kleen <ak at linux dot intel dot com>
- Date: Fri, 9 Nov 2012 17:49:43 +0000
- Subject: Re: [PATCH] libstdc++: Add mem_order_hle_acquire/release to atomic.h
- References: <1352473601-12056-1-git-send-email-andi@firstfloor.org>
On 9 November 2012 15:06, Andi Kleen wrote:
>
> The underlying compiler supports additional __ATOMIC_HLE_ACQUIRE/RELEASE
> memmodel flags for TSX, but this was not exposed to the C++ wrapper.
> Handle it there.
Where do these enumerator names come from? They're certainly not part
of the C++ standard so your patch breaks this valid C++ program:
#define memory_order_hle_acquire 1
#include <atomic>
int main()
{
}
Can the enumerators be uglified to __memory_order_hle_acquire or
something like that?