http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50457
--- Comment #13 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-10-02 10:57:59 UTC --- (In reply to comment #12) > (In reply to comment #11) > > Created attachment 28321 [details] > > cleanup libgcc/config/sh/linux-atomic > > Works fine for me. > > > (three leading underscores) > > You might get one extra underscore because embed-elf SH compiler uses one > underscore as USER_LABEL_PREFIX. It's OK for linux which uses null > USER_LABEL_PREFIX. I've got > > .long __sync_val_compare_and_swap_4 > > with sh4-unknown-linux-gnu gcc for that case. Thanks for the explanation! Patch submitted: http://gcc.gnu.org/ml/gcc-patches/2012-10/msg00162.html