This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/81358] libatomic not automatically linked with C11 code
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Jul 2017 17:02:49 +0000
- Subject: [Bug driver/81358] libatomic not automatically linked with C11 code
- Auto-submitted: auto-generated
- References: <bug-81358-4@http.gcc.gnu.org/bugzilla/>
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.