aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2013-08-12 13:40:28 +0400
committerAlexander Monakov <amonakov@gcc.gnu.org>2013-08-12 13:40:28 +0400
commit94109a6a3a769c33b3f26c1eafd3b80ef7bf1f07 (patch)
tree7318ecc541b60d7ff3de404000975de478fd85cc
parent4e11510216215d01cd88fa7310703d432c532a0a (diff)
downloadgcc-94109a6a3a769c33b3f26c1eafd3b80ef7bf1f07.zip
gcc-94109a6a3a769c33b3f26c1eafd3b80ef7bf1f07.tar.gz
gcc-94109a6a3a769c33b3f26c1eafd3b80ef7bf1f07.tar.bz2
* doc/invoke.texi: Mention that -ftls-model does not force the final model.
From-SVN: r201661
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/invoke.texi3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cda36e7..21b66d6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-12 Alexander Monakov <amonakov@ispras.ru>
+
+ * doc/invoke.texi: Mention that -ftls-model does not force the final
+ model.
+
2013-08-12 Marek Polacek <polacek@redhat.com>
Marc Glisse <marc.glisse@inria.fr>
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 70f09e7..663b9fd 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -20929,6 +20929,9 @@ Not all targets provide complete support for this switch.
Alter the thread-local storage model to be used (@pxref{Thread-Local}).
The @var{model} argument should be one of @code{global-dynamic},
@code{local-dynamic}, @code{initial-exec} or @code{local-exec}.
+Note that the choice is subject to optimization: the compiler may use
+a more efficient model for symbols not visible outside of the translation
+unit, or if @option{-fpic} is not given on the command line.
The default without @option{-fpic} is @code{initial-exec}; with
@option{-fpic} the default is @code{global-dynamic}.