diff options
author | Richard Henderson <rth@redhat.com> | 2006-10-09 09:27:14 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2006-10-09 09:27:14 -0700 |
commit | a98d4769d5d5449e3ed3a524143b37e6c8a045ec (patch) | |
tree | 3b365f54da686b951378eabd14acdaf98bd0eb15 /gcc/c-decl.c | |
parent | 5771bd91eccb16e766ed13f533bdb4695c705da7 (diff) | |
download | gcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.zip gcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.tar.gz gcc-a98d4769d5d5449e3ed3a524143b37e6c8a045ec.tar.bz2 |
Revert emutls patch.
From-SVN: r117578
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 6379a1e..3897bea 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 |