https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125235

--- Comment #10 from Drea Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Rocket Ma from comment #9)
> Also, why gcc 16 requires an atomic library? I didn't see any atomic
> operations in an empty file.
> 

Gcc the driver can't tell if you will need libatomic or not. So it uses a
linker script to say if it is needed link against libatomic.
This is because for c11/c++11 code you would need to sometimes but depending on
the target link against libatomic. And many folks dont know that so gcc
automatically does now.


> [1]: https://musl.libc.org/doc/1.1.24/manual.html

Reply via email to