This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]