https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122429
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The check part that was added in gcc/configure.ac should make it work with an
explict --disable-libatomic I think.
7063 if echo " ${TARGET_CONFIGDIRS} " | grep " libatomic " > /dev/null 2>&1
; then
7064 AC_DEFINE(TARGET_PROVIDES_LIBATOMIC, 1,
7065 [Define if libatomic is built for the target.])
7066 fi
7067
