From: amonakov Date: Mon, 12 Aug 2013 09:40:28 +0000 (+0000) Subject: * doc/invoke.texi: Mention that -ftls-model does not force the final model. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b61d5656b7f16257d94d2b6430ac1c1a5f076b6a;p=thirdparty%2Fgcc.git * doc/invoke.texi: Mention that -ftls-model does not force the final model. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201661 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cda36e7257c8..21b66d6278f4 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 70f09e727735..663b9fdf1b7f 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}.