This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: atomic accesses


On 3/5/08, Andrew Haley <aph@redhat.com> wrote:
> The proposed memory model partly described at
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2338.html
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2492.html
> http://open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2176.html
> shows the way the C++ committee is moving.  This involves explicit
> atomic operations.

The C++0x standard has formally incorporated the new memory model
and atomic operations into the current working draft for the standard:
http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2008/n2521.pdf
As this standard has not been approved, it may change, but significant
changes are unlikely.

I think gcc would be better served by implementing the standard than
by trying to define a different model, both because getting such models
right is hard and because multiple models make life hard for the
programmers that must code to multiple platforms.

-- 
Lawrence Crowl


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]