Re: [C11-atomic] Miscellaneous fixes 1/n

2013-10-18 Thread Andrew MacLeod
On 10/18/2013 04:40 PM, Joseph S. Myers wrote: On Fri, 18 Oct 2013, Andrew MacLeod wrote: I had thought about making the type and value of atomic_flag hooks , but never got to it. There is currently one for the TRUE value which is exposed to the C++ templates as" __GCC_ATOMIC_TEST_AND_SET_TRUE

Re: [C11-atomic] Miscellaneous fixes 1/n

2013-10-18 Thread Joseph S. Myers
On Fri, 18 Oct 2013, Andrew MacLeod wrote: > I had thought about making the type and value of atomic_flag hooks , but never > got to it. There is currently one for the TRUE value which is exposed to the > C++ templates as" __GCC_ATOMIC_TEST_AND_SET_TRUEVAL" I'm tending to think of this, and alig

Re: [C11-atomic] Miscellaneous fixes 1/n

2013-10-18 Thread Andrew MacLeod
On 10/18/2013 01:27 PM, Joseph S. Myers wrote: On Fri, 18 Oct 2013, Andrew MacLeod wrote: right. We may re-visit it when we finalize the ABI changes for c++... Use of the attribute in c++ will ensure that C and C++ both treat an atomic object the same... My original discussions with lawrence

Re: [C11-atomic] Miscellaneous fixes 1/n

2013-10-18 Thread Joseph S. Myers
On Fri, 18 Oct 2013, Andrew MacLeod wrote: > right. We may re-visit it when we finalize the ABI changes for c++... Use of > the attribute in c++ will ensure that C and C++ both treat an atomic object > the same... My original discussions with lawrence and jeffrey over atomics > concerned the de

Re: [C11-atomic] Miscellaneous fixes 1/n

2013-10-18 Thread Andrew MacLeod
On 10/17/2013 05:50 PM, Joseph S. Myers wrote: I've applied this patch to the C11-atomic branch to fix various miscellaneous issues. excellent! I put a hack in the C++ front end to disable checks on atomic qualifiers so that libstdc++ builds - I think that if you want other people to help on