From: Alexander Monakov Date: Mon, 12 Aug 2013 09:40:28 +0000 (+0400) Subject: * doc/invoke.texi: Mention that -ftls-model does not force the final model. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94109a6a3a769c33b3f26c1eafd3b80ef7bf1f07;p=gcc.git * doc/invoke.texi: Mention that -ftls-model does not force the final model. From-SVN: r201661 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cda36e7257c..21b66d6278f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-08-12 Alexander Monakov + + * doc/invoke.texi: Mention that -ftls-model does not force the final + model. + 2013-08-12 Marek Polacek Marc Glisse diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 70f09e72773..663b9fdf1b7 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}.