]> granicus.if.org Git - clang/commitdiff
Mention -ftls-model in release notes and manual.
authorHans Wennborg <hans@hanshq.net>
Fri, 13 Jul 2012 12:47:15 +0000 (12:47 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 13 Jul 2012 12:47:15 +0000 (12:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160169 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.html
docs/UsersManual.html

index b820e8dc3fdf1c17744dc87d7069b498862e056c..2108909c9729ee329d079311bb0f9fc622da3489 100644 (file)
@@ -196,6 +196,12 @@ model can be used.
   function names, file names and line numbers (by such tools as gdb or addr2line).
   Debug info for variables or function parameters is not produced, which reduces
   the size of the resulting binary.
+
+  <li><tt>-ftls-model</tt> controls which TLS model to use for thread-local
+  variables. This can be overridden per variable using the
+  <a href="#tlsmodel"><tt>tls_model</tt> attribute</a> mentioned above.
+  For more details, see the <a href="UsersManual.html#opt_ftls-model">User's
+  Manual</a>.</li>
 </ul>
 
 <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
index 0ca0e5377f5c4c535e97b2ba0b2440f82e703124..130fcefde095db617efbd49732c4eee796f06755 100644 (file)
@@ -913,6 +913,16 @@ generator will always lower the builtin to a call to the specified function
 regardless of whether the target ISA has a trap instruction. This option is
 useful for environments (e.g. deeply embedded) where a trap cannot be properly
 handled, or when some custom behavior is desired.</dd>
+
+<dt id="opt_ftls-model"><b>-ftls-model=[model]</b>: Select which TLS model to
+use.</dt>
+<dd>Valid values are: <tt>global-dynamic</tt>, <tt>local-dynamic</tt>,
+<tt>initial-exec</tt> and <tt>local-exec</tt>. The default value is
+<tt>global-dynamic</tt>. The compiler may use a different model if the selected
+model is not supported by the target, or if a more efficient model can be used.
+The TLS model can be overridden per variable using the <tt>tls_model</tt>
+attribute.
+</dd>
 </dl>
 
 <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->