https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106807
--- Comment #1 from Andreas Schwab <sch...@linux-m68k.org> --- That happens if you use a modified compiler that automatically adds -latomic, so that configure in libatomic thinks that the builtins are available and expanded inline.