[csw-maintainers] __sync_fetch_and_add_4 woes

Peter FELECAN pfelecan at opencsw.org
Wed Aug 10 20:56:59 CEST 2011


Maciej Bliziński <maciej at opencsw.org> writes:

> __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?

For those 2 clunky platforms: yes; for the others: no. Don't ask...

-- 
Peter


More information about the maintainers mailing list