diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-09-02 15:58:26 -0700 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2025-09-02 15:58:26 -0700 |
commit | 071b4126c613881f4cb25b4e5c39032964827f88 (patch) | |
tree | 7ed805786566918630d1d617b1ed8f7310f5fd8e /gcc/fortran/trans-common.cc | |
parent | 845d23f3ea08ba873197c275a8857eee7edad996 (diff) | |
parent | caa1c2f42691d68af4d894a5c3e700ecd2dba080 (diff) | |
download | gcc-devel/gfortran-test.zip gcc-devel/gfortran-test.tar.gz gcc-devel/gfortran-test.tar.bz2 |
Merge branch 'master' into gfortran-testdevel/gfortran-test
Diffstat (limited to 'gcc/fortran/trans-common.cc')
-rw-r--r-- | gcc/fortran/trans-common.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/fortran/trans-common.cc b/gcc/fortran/trans-common.cc index 2db50da..135d304 100644 --- a/gcc/fortran/trans-common.cc +++ b/gcc/fortran/trans-common.cc @@ -469,9 +469,6 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init) gfc_set_decl_location (decl, &com->where); - if (com->threadprivate) - set_decl_tls_model (decl, decl_default_tls_model (decl)); - if (com->omp_device_type != OMP_DEVICE_TYPE_UNSET) { tree c = build_omp_clause (UNKNOWN_LOCATION, OMP_CLAUSE_DEVICE_TYPE); @@ -536,6 +533,10 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init) DECL_COMMON (decl) = 0; DECL_DEFER_OUTPUT (decl) = 0; } + + if (com->threadprivate) + set_decl_tls_model (decl, decl_default_tls_model (decl)); + return decl; } |