[Patch] Replace x86 asm in Standard_Atomic with g++ atomic extensions

This patch replaces x86 asm in Standard_Atomic with g++ atomic extensions when compiling when compiling on non-Windows machines with g++ to improve portability

Attachments: 
Thomas Paviot's picture

Many thanks Denis for all these fixes.

Thomas

OCC650PATCH

Roman Lygin's picture

Hi Denis,

Thanks for this effort.
Two questions:
1. Is __GNUG__ fully equivalent to __GNUC__ ? http://predef.sourceforge.net/precomp.html#sec15 only mentions __GNUC__.
2. In which gcc version were atomics introduced ? In particular are they supported in 4.0.x which is supported by OCC (in particular MacOS 10.5 comes with 4.0.1 AFAIR) ?

Thanks.
Roman