Re: [patch] libstdc++/64658 define std::atomic_init()

2015-01-21 Thread Jonathan Wakely
On 20/01/15 11:59 +, Jonathan Wakely wrote: On 19/01/15 16:02 +, Jonathan Wakely wrote: We declare atomic_init() but then never define it, I assume that's just an accident. Although the standard says this function is non-atomic, the simplest fix at this stage is just to do an atomic sto

Re: [patch] libstdc++/64658 define std::atomic_init()

2015-01-20 Thread Jonathan Wakely
On 19/01/15 16:02 +, Jonathan Wakely wrote: We declare atomic_init() but then never define it, I assume that's just an accident. Although the standard says this function is non-atomic, the simplest fix at this stage is just to do an atomic store (when we get to stage 1 again I'd like to make

[patch] libstdc++/64658 define std::atomic_init()

2015-01-19 Thread Jonathan Wakely
We declare atomic_init() but then never define it, I assume that's just an accident. Although the standard says this function is non-atomic, the simplest fix at this stage is just to do an atomic store (when we get to stage 1 again I'd like to make the function a friend of std::__atomic_base<> so