summaryrefslogtreecommitdiffstats
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:27:14 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:27:14 +0000
commit5c3667a19751f3f0b11b07c3712b152a70c650ba (patch)
tree3b365f54da686b951378eabd14acdaf98bd0eb15 /gcc/c-decl.c
parentbd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e (diff)
downloadppe42-gcc-5c3667a19751f3f0b11b07c3712b152a70c650ba.tar.gz
ppe42-gcc-5c3667a19751f3f0b11b07c3712b152a70c650ba.zip
Revert emutls patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 6379a1e2974..3897bea36b6 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4838,7 +4838,14 @@ grokdeclarator (const struct c_declarator *declarator,
}
if (threadp)
- DECL_TLS_MODEL (decl) = decl_default_tls_model (decl);
+ {
+ 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");
+ }
}
if (storage_class == csc_extern
OpenPOWER on IntegriCloud