https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107581
--- Comment #6 from Marc Poulhiès <dkm at gcc dot gnu.org> --- IIUC, the builtin for ADD_FETCH_4 is correctly defined (there's an entry with a corresponding decl), but there's no builtin for FETCH_ADD_4. When looking in go-gcc.cc, I see that only the ADD_FETCH is defined, and not the FETCH_ADD. I'm testing a simple patch. It fixes the segfault but the libgo still won't build because of missing symbols (probably an issue in uclibc? Not sure it's worth the effort...). I'm now regtesting the patch on x86_64.