Commit 3179ebae by Jakub Jelinek Committed by Jakub Jelinek

c-parser.c (c_parser_omp_requires): Call sorry_at on requires clauses other than…

c-parser.c (c_parser_omp_requires): Call sorry_at on requires clauses other than atomic_default_mem_order.

	* c-parser.c (c_parser_omp_requires): Call sorry_at on requires
	clauses other than atomic_default_mem_order.

	* parser.c (cp_parser_omp_requires): Call sorry_at on requires
	clauses other than atomic_default_mem_order.

	* c-c++-common/gomp/requires-1.c: Prune not supported yet messages.
	* c-c++-common/gomp/requires-2.c: Likewise.
	* c-c++-common/gomp/requires-4.c: Likewise.

From-SVN: r265988
parent 4302dd3d
2018-11-09 Jakub Jelinek <jakub@redhat.com>
* c-parser.c (c_parser_omp_requires): Call sorry_at on requires
clauses other than atomic_default_mem_order.
2018-11-08 Jakub Jelinek <jakub@redhat.com>
* c-parser.c: Include memmode.h.
......
......@@ -19017,6 +19017,9 @@ c_parser_omp_requires (c_parser *parser)
return;
}
if (p)
sorry_at (cloc, "%qs clause on %<requires%> directive not "
"supported yet", p);
if (p)
c_parser_consume_token (parser);
if (this_req)
{
......
2018-11-09 Jakub Jelinek <jakub@redhat.com>
* parser.c (cp_parser_omp_requires): Call sorry_at on requires
clauses other than atomic_default_mem_order.
2018-11-09 Martin Sebor <msebor@redhat.com>
PR middle-end/81824
......
......@@ -39235,6 +39235,9 @@ cp_parser_omp_requires (cp_parser *parser, cp_token *pragma_tok)
return false;
}
if (p)
sorry_at (cloc, "%qs clause on %<requires%> directive not "
"supported yet", p);
if (p)
cp_lexer_consume_token (parser->lexer);
if (this_req)
{
2018-11-09 Jakub Jelinek <jakub@redhat.com>
* c-c++-common/gomp/requires-1.c: Prune not supported yet messages.
* c-c++-common/gomp/requires-2.c: Likewise.
* c-c++-common/gomp/requires-4.c: Likewise.
* c-c++-common/gomp/lastprivate-conditional-1.c: New test.
* c-c++-common/gomp/lastprivate-conditional-2.c: New test.
......
......@@ -13,3 +13,5 @@ foo ()
i++;
#pragma omp requries atomic_default_mem_order(seq_cst)
}
/* { dg-prune-output "not supported yet" } */
......@@ -16,3 +16,5 @@ foo ()
}
#pragma omp requires atomic_default_mem_order (seq_cst) /* { dg-error "more than one 'atomic_default_mem_order' clause in a single compilation unit" } */
/* { dg-prune-output "not supported yet" } */
......@@ -9,3 +9,5 @@ foo (void)
#pragma omp requires unified_address /* { dg-error "'unified_address' clause used lexically after first target construct or offloading API" } */
#pragma omp requires reverse_offload /* { dg-error "'reverse_offload' clause used lexically after first target construct or offloading API" } */
/* { dg-prune-output "not supported yet" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment