diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-06-28 08:01:44 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-06-28 08:01:44 +0000 |
commit | f60f6af9e84fe7752edb6fa42464778ac8a53e99 (patch) | |
tree | 0fc46d3b32bf750669cf8ad484e64d94c8b54447 /clang/docs/tools | |
parent | 608c0b65d78531d1713a02f34a9b876deefb4943 (diff) | |
download | bcm5719-llvm-f60f6af9e84fe7752edb6fa42464778ac8a53e99.tar.gz bcm5719-llvm-f60f6af9e84fe7752edb6fa42464778ac8a53e99.zip |
Add -ftls-model command-line flag.
This allows for setting the default TLS model. (PR9788)
llvm-svn: 159336
Diffstat (limited to 'clang/docs/tools')
-rw-r--r-- | clang/docs/tools/clang.pod | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/docs/tools/clang.pod b/clang/docs/tools/clang.pod index 8f61568e076..425a91ef037 100644 --- a/clang/docs/tools/clang.pod +++ b/clang/docs/tools/clang.pod @@ -303,6 +303,14 @@ This flag sets the default visibility level. This flag specifies that variables without initializers get common linkage. It can be disabled with B<-fno-common>. +=item B<-ftls-model> + +Set the default thread-local storage (TLS) model to use for thread-local +variables. Valid values are: "global-dynamic", "local-dynamic", "initial-exec" +and "local-exec". The default is "global-dynamic". The default model can be +overridden with the tls_model attribute. The compiler will try to choose a more +efficient model if possible. + =item B<-flto> B<-emit-llvm> Generate output files in LLVM formats, suitable for link time optimization. When |