https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- In the libm case, POSIX has an explicit list of headers whose functions may require particular libraries to be linked in. libatomic is required for use of language features without any reference to functions from any header.