]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Update TLS model after processing a TLS variable
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 5 Sep 2025 22:40:51 +0000 (15:40 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 8 Sep 2025 21:11:17 +0000 (14:11 -0700)
commit8cad8f94b450be9b73d07bdeef7fa1778d3f2b96
treeb35dde8279217c060771115c3d547ed245af125a
parentd199a9c7c5034d0eddb3380a58342a5bcbe6febd
c: Update TLS model after processing a TLS variable

Set a tentative TLS model in grokvardecl and update TLS mode with the
default TLS access model after a TLS variable has been fully processed
if the default TLS access model is stronger.

gcc/c/

PR c/107419
* c-decl.cc (c_decl_attributes): Update TLS model with the
default TLS access model if the default TLS access model is
stronger.
(grokdeclarator): Set a tentative TLS model which will be
updated by c_decl_attributes later.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/c/c-decl.cc