[cfe-dev] __thread keyword, LLVM 3.2 & Xcode 4.6

Jordan Rose jordan_rose at apple.com
Mon Nov 5 17:27:45 PST 2012

On Nov 5, 2012, at 16:37 , James Gregurich <bayoubengal at me.com> wrote:

> hi.
> I just updated to Xcode 4.6.  I note the following:
> $ /Applications/Xcode46-DP1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang --version
> Apple clang version 4.2 (tags/Apple/clang-424.0.11) (based on LLVM 3.2svn)
> Target: x86_64-apple-darwin12.2.0
> Thread model: posix
> It is my understanding from the release notes, that LLVM 3.2 is support thread-local storage. I just re-ran my test using the '__thread' keyword from the last time I asked about this and I still just get one instance of the object rather than one-per-thread.
> Is this something that should be working?

In addition to Eli's informative answer, please note that while LLVM and Clang are open-source, Xcode 4.6 and the "Apple clang version 4.2" are still under NDA. Please do not discuss their specifics outside of the closed developer forums.

(I hate to be that guy, but...)

More information about the cfe-dev mailing list