This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.
- From: "fw at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jul 2018 19:23:55 +0000
- Subject: [Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.
- Auto-submitted: auto-generated
- References: <bug-53769-4@http.gcc.gnu.org/bugzilla/>
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.