summaryrefslogtreecommitdiffstats
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 3bdf70e12ba..648c805828d 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4927,14 +4927,7 @@ grokdeclarator (const struct c_declarator *declarator,
}
if (threadp)
- {
- if (targetm.have_tls)
- DECL_TLS_MODEL (decl) = decl_default_tls_model (decl);
- else
- /* A mere warning is sure to result in improper semantics
- at runtime. Don't bother to allow this to compile. */
- error ("thread-local storage not supported for this target");
- }
+ DECL_TLS_MODEL (decl) = decl_default_tls_model (decl);
}
if (storage_class == csc_extern
OpenPOWER on IntegriCloud