From 5c3667a19751f3f0b11b07c3712b152a70c650ba Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 9 Oct 2006 16:27:14 +0000 Subject: Revert emutls patch. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117578 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/c-decl.c') 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 -- cgit v1.2.1