diff options
author | Julian Brown <jules@gcc.gnu.org> | 2018-12-04 12:35:06 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2018-12-04 12:35:06 +0000 |
commit | 9df6c0e4edf8810c7ed31f78eeb5ee4838d3c114 (patch) | |
tree | a2b615915d7dede9b8326229a4fd7631de438973 /gcc/c/c-parser.c | |
parent | f0e98f1bb47ab5827d89bd6a16f4263e20549da3 (diff) | |
download | gcc-9df6c0e4edf8810c7ed31f78eeb5ee4838d3c114.zip gcc-9df6c0e4edf8810c7ed31f78eeb5ee4838d3c114.tar.gz gcc-9df6c0e4edf8810c7ed31f78eeb5ee4838d3c114.tar.bz2 |
OpenACC wait list diagnostic change
2018-12-04 James Norris <jnorris@codesourcery.com>
Cesar Philippidis <cesar@codesourcery.com>
Julian Brown <julian@codesourcery.com>
gcc/c/
* c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic
code.
gcc/cp/
* parser.c (cp_parser_oacc_wait_list): Fix error message and avoid
duplicate diagnostic.
gcc/testsuite/
* c-c++-common/goacc/asyncwait-1: Update expected errors and add a
test for "wait (".
Reviewed-by: Thomas Schwinge <thomas@codesourcery.com>
Reviewed-by: Joseph Myers <joseph@codesourcery.com>
From-SVN: r266774
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index afc4071..0d7fcc0 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -11801,14 +11801,6 @@ c_parser_oacc_wait_list (c_parser *parser, location_t clause_loc, tree list) return list; args = c_parser_expr_list (parser, false, true, NULL, NULL, NULL, NULL); - - if (args->length () == 0) - { - c_parser_error (parser, "expected integer expression before ')'"); - release_tree_vector (args); - return list; - } - args_tree = build_tree_list_vec (args); for (t = args_tree; t; t = TREE_CHAIN (t)) |