aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r--gcc/c-parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c
index f4b0891..8520253 100644
--- a/gcc/c-parser.c
+++ b/gcc/c-parser.c
@@ -7801,6 +7801,9 @@ c_parser_omp_threadprivate (c_parser *parser)
c_parser_consume_pragma (parser);
vars = c_parser_omp_var_list_parens (parser, 0, NULL);
+ if (!targetm.have_tls)
+ sorry ("threadprivate variables not supported in this target");
+
/* Mark every variable in VARS to be assigned thread local storage. */
for (t = vars; t; t = TREE_CHAIN (t))
{