http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51798
--- Comment #21 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-27 14:49:12 UTC --- (In reply to comment #20) > The patch is incomplete because it should update > src/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h as well. It does update even that file. The patch attached here doesn't work though, but with sed -i -e s/__atomic_fetch_and_add/__atomic_fetch_add/g gcc47-pr51798.patch it does, so far bootstrap/regression tested on x86_64-linux, i686-linux and bootstrap tested on {powerpc{,64},s390{,x}}-linux, regression testing on those 4 ongoing.