In libstdc++-v3, atomicity.h for powerpc used to include: #ifdef __PPC405__ #define _STWCX "sync \n\tstwcx. " #else #define _STWCX "stwcx. " #endif
This work around is still missing from the powerpc implementation of the builtins for atomic memory operations. -- Summary: Powerpc atomic builtins missing PPC405 errata Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: critical Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pcarlini at suse dot de CC: dje at watson dot ibm dot com,gcc-bugs at gcc dot gnu dot org GCC target triplet: powerpc-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21760