[Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 15 22:16:00 GMT 2020


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

--- Comment #11 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Wed, 15 Jan 2020, christophe.monat at st dot com wrote:

> Now that C11 is complete, would it be acceptable to have GCC define
> __STDC_NO_THREADS__ and __STDC_NO_ATOMIC__ when appropriate ?

That should be done via the implicit preinclude mechanism, with libc 
providing a header and GCC knowing what libc calls that header.


More information about the Gcc-bugs mailing list