OSDN Git Service

Revert emutls patch.
[pf3gnuchains/gcc-fork.git] / gcc / c-parser.c
index f4b0891..8520253 100644 (file)
@@ -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))
     {