DiscussionsIssue archiveOther usage issues

Archived discussion

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

Other usage issuesTue, 03/08/2011 - 01:132 replies

Browse this forum
QuestionAuthor

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

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Many thanks Author for all these fixes.

Commenter-1

OCC650PATCH

02Commenter-2

Hi Author,

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.
Commenter-2