[libc-commits] [libc] [libc] Remove unused _Thread_local define from headers. (PR #156967)

via libc-commits libc-commits at lists.llvm.org
Thu Sep 4 14:53:37 PDT 2025


enh-google wrote:

> > C23 6.4.1 points out that `_Thread_local` (along with a few other things) is special --- you can say _either_ `thread_local` or `_Thread_local` in C23, and it's left to the implementation to worry about how exactly that's implemented.
> 
> Right, so if in C23 `_Thread_local` is just an alternative spelling of `thread_local`, then we don't need to do anything in libc headers, and it's the compiler responsibility to properly treat those keywords?

that is my understanding, yes. (since it's in 6.4 "lexical elements" rather than in the library.)

https://github.com/llvm/llvm-project/pull/156967


More information about the libc-commits mailing list