[llvm-bugs] [Bug 33564] _Thread_local accepted in -std=c99

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 23 14:44:07 PDT 2017


Eli Friedman <efriedma at codeaurora.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
                 CC|                            |efriedma at codeaurora.org

--- Comment #1 from Eli Friedman <efriedma at codeaurora.org> ---
_Thread_local is reserved in C99, so we don't need a -pedantic warning.
(Quoting the standard: "All identifiers that begin with an underscore and
either an uppercase letter or another underscore are always reserved for any

More generally, clang doesn't have a flag to emit warnings about code which
uses clang extensions, as long as those extensions are allowed by the C or C++
standard.  We haven't found any real use for warnings like that; the best way
to ensure your code is portable is to compile it with the compilers you care

If you want to write your own warnings, you can use clang-tidy

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170623/db4e7289/attachment.html>

More information about the llvm-bugs mailing list