[cfe-commits] [Patch] The address of a TLS var is not compile-time constant (PR13720)

Hans Wennborg hans at chromium.org
Wed Aug 29 01:18:25 PDT 2012


Hi all,

The attached patch makes Clang produce an error for code such as:

  __thread int x;
  int *p = &x;

The lvalue of a thread-local variable cannot be evaluated at compile
time. Please take a look.

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tls-var-initializer.patch
Type: application/octet-stream
Size: 1015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120829/68ee9f02/attachment.obj>


More information about the cfe-commits mailing list