]> granicus.if.org Git - clang/commit
Support the tls_model attribute (PR9788)
authorHans Wennborg <hans@hanshq.net>
Sat, 23 Jun 2012 11:51:46 +0000 (11:51 +0000)
committerHans Wennborg <hans@hanshq.net>
Sat, 23 Jun 2012 11:51:46 +0000 (11:51 +0000)
commit5e2d5dec7736f6f9292d4212dec67295909f1328
treeae900f2d4e941e5e66ed601b1f2d0d8ff1f1ec14
parent2edf0a2520313cde900799b1eb9bd11c9c776afe
Support the tls_model attribute (PR9788)

This adds support for the tls_model attribute. This allows the user to
choose a TLS model that is better than what LLVM would select by
default. For example, a variable might be declared as:

  __thread int x __attribute__((tls_model("initial-exec")));

if it will not be used in a shared library that is dlopen'ed.

This depends on LLVM r159077.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159078 91177308-0d34-0410-b5e6-96231b3b80d8
docs/ReleaseNotes.html
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/thread-specifier.c
test/Sema/attr-tls_model.c [new file with mode: 0644]