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

fw at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 12 19:32:00 GMT 2018


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

Florian Weimer <fw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fw at gcc dot gnu.org

--- Comment #7 from Florian Weimer <fw at gcc dot gnu.org> ---
Furthermore, if I don't misread the standard, the expectation is that if an
implementation does not support threads, it still recognizes _Thread_local and
mostly ignores it, so that it is available even if __STDC_NO_THREADS__ is not
defined.  (Which is of course rather dodgy if you need to conform to an
existing ABI for thread-local variables, so I think the committee made a
mistake here.)

__STDC_NO_THREADS__ only reflects the existence of the <threads.h> and nothing
else.


More information about the Gcc-bugs mailing list