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
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) ?
Tue, 03/08/2011 - 08:27
Many thanks Denis for all these fixes.
Thomas
OCC650PATCH
Tue, 03/08/2011 - 10:15
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