[Bug c/69982] missing warning when using __thread with -std=c99 -pedantic

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Feb 26 15:26:00 GMT 2016


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, there is a difference, __thread is an extension, while _Thread_local is
standard in a later version of the standard, and __thread uses the
implementation namespace, so it is similar for the compiler not complaining
about __attribute__((__noinline__)) even in -std=c99 -pedantic, or about
__extension__ etc.


More information about the Gcc-bugs mailing list