[csw-maintainers] __sync_fetch_and_add_4 woes

Maciej Bliziński maciej at opencsw.org
Wed Aug 10 10:35:50 CEST 2011


__sync_fetch_and_add_4 has been biting my badly in recent days, when
was working towards the new GCC.  It's not a new problem, you can find
a number of past postings to the mailing list about this issue. Our
porting FAQ suggests a workaround: disable optimization.  The problem
occurs with i386 and sparcv8, and I need to set -O0 to make these ISAs
build.  I suppose that for a less used program it could be fine, but
I'm building the compiler and its dependent libraries.  Are we OK with
GMP, PPL and their client, GCC, built with no optimization?

Maciej

[1] http://lists.opencsw.org/pipermail/maintainers/2009-December/010834.html
[2] http://lists.opencsw.org/pipermail/maintainers/2010-October/012869.html
[3] http://opencsw.wikidot.com/porting-faq#toc6


More information about the maintainers mailing list