aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-common.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2006-10-09 09:27:14 -0700
committerRichard Henderson <rth@gcc.gnu.org>2006-10-09 09:27:14 -0700
commita98d4769d5d5449e3ed3a524143b37e6c8a045ec (patch)
tree3b365f54da686b951378eabd14acdaf98bd0eb15 /gcc/fortran/trans-common.c
parent5771bd91eccb16e766ed13f533bdb4695c705da7 (diff)
downloadgcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.zip
gcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.tar.gz
gcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.tar.bz2
Revert emutls patch.
From-SVN: r117578
Diffstat (limited to 'gcc/fortran/trans-common.c')
-rw-r--r--gcc/fortran/trans-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/trans-common.c b/gcc/fortran/trans-common.c
index e580494..5350eac 100644
--- a/gcc/fortran/trans-common.c
+++ b/gcc/fortran/trans-common.c
@@ -388,7 +388,7 @@ build_common_decl (gfc_common_head *com, tree union_type, bool is_init)
gfc_set_decl_location (decl, &com->where);
- if (com->threadprivate)
+ if (com->threadprivate && targetm.have_tls)
DECL_TLS_MODEL (decl) = decl_default_tls_model (decl);
/* Place the back end declaration for this common block in