Re: Please support the _Atomic keyword in C++

2018-05-16 Thread Jonathan Wakely
On 16 May 2018 at 11:23, Rodrigo V. G. wrote: > On Tue, May 15, 2018 at 12:50 PM, Jonathan Wakely > wrote: >> If you want a freestanding C++ implementation then configure GCC with >> --disable-hosted-libstdcxx and build+install libstdc++. Those >> instructions do neither of those things, so it's

Re: Please support the _Atomic keyword in C++

2018-05-16 Thread Rodrigo V. G.
On Tue, May 15, 2018 at 12:50 PM, Jonathan Wakely wrote: > On 15 May 2018 at 11:01, Rodrigo V. G. wrote: >> On Tue, May 15, 2018 at 12:27 AM, Jonathan Wakely >> wrote: >>> On 14 May 2018 at 22:32, Rodrigo V. G. wrote: In addition to the bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?

Re: Please support the _Atomic keyword in C++

2018-05-15 Thread Jonathan Wakely
On 15 May 2018 at 11:01, Rodrigo V. G. wrote: > On Tue, May 15, 2018 at 12:27 AM, Jonathan Wakely > wrote: >> On 14 May 2018 at 22:32, Rodrigo V. G. wrote: >>> In addition to the bug: >>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 >>> I wanted to add some comment: >>> >>> It would be ve

Re: Please support the _Atomic keyword in C++

2018-05-15 Thread Andrew Haley
On 05/15/2018 11:01 AM, Rodrigo V. G. wrote: > I tried to use __atomic_fetch_add in C++ with a volatile (non _Atomic) > variable, > and it seems to generate the same assembler code. > The only difference that I saw was that with _Atomic > it generates a "mfence" instruction after initialization bu

Re: Please support the _Atomic keyword in C++

2018-05-15 Thread Rodrigo V. G.
On Tue, May 15, 2018 at 12:27 AM, Jonathan Wakely wrote: > On 14 May 2018 at 22:32, Rodrigo V. G. wrote: >> In addition to the bug: >> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 >> I wanted to add some comment: >> >> It would be very useful if the _Atomic keyword would be supported in C++

Re: Please support the _Atomic keyword in C++

2018-05-14 Thread Jonathan Wakely
On 14 May 2018 at 22:32, Rodrigo V. G. wrote: > In addition to the bug: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 > I wanted to add some comment: > > It would be very useful if the _Atomic keyword would be supported in C++. > This way the header could be included inconditionally in C++

Please support the _Atomic keyword in C++

2018-05-14 Thread Rodrigo V. G.
In addition to the bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60932 I wanted to add some comment: It would be very useful if the _Atomic keyword would be supported in C++. This way the header could be included inconditionally in C++ code. Even if it is not compatible with the C++ header,