https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121889
--- Comment #11 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <[email protected]>: https://gcc.gnu.org/g:0b0ffa44c1881a52e5c624d369a090403919e61a commit r16-3804-g0b0ffa44c1881a52e5c624d369a090403919e61a Author: H.J. Lu <[email protected]> Date: Wed Sep 10 12:47:47 2025 -0700 c++: Don't upgrade TLS model if TLS model isn't set. Don't upgrade TLS model when cplus_decl_attributes is called on a thread local variable whose TLS model isn't set yet. gcc/cp/ PR c++/121889 * decl2.cc (cplus_decl_attributes): Don't upgrade TLS model if TLS model isn't set yet. gcc/testsuite/ PR c++/121889 * g++.dg/tls/pr121889.C: New test. Signed-off-by: H.J. Lu <[email protected]>
