After r13-3416-g1d561e1851c466: commit 1d561e1851c466a4952081caef17747781609b00 Author: Artem Klimov <jakmob...@gmail.com> Date: Wed Jul 6 17:02:01 2022 +0300
ipa-visibility: Optimize TLS access [PR99619] GCC can optimize the TLS access model which means that tls_model attribute specifies the weakest access model. Update tls_model attribute documentation to reflect it. PR middle-end/121352 * doc/extend.texi: Update the tls_model attribute. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> --- gcc/doc/extend.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 224d6197d63..3ffa4b89915 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7528,7 +7528,10 @@ The @code{tls_model} attribute sets thread-local storage model overriding @option{-ftls-model=} command-line switch on a per-variable basis. The @var{tls_model} argument should be one of @code{global-dynamic}, -@code{local-dynamic}, @code{initial-exec} or @code{local-exec}. +@code{local-dynamic}, @code{initial-exec} or @code{local-exec}. The +@code{tls_model} attribute specifies the weakest @acronym{TLS} access +model. GCC may optimize @acronym{TLS} access to a stronger @acronym{TLS} +access model. Not all targets support this attribute. -- 2.50.1