OpenACC wait list diagnostic change
authorJulian Brown <jules@gcc.gnu.org>
Tue, 4 Dec 2018 12:35:06 +0000 (12:35 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Tue, 4 Dec 2018 12:35:06 +0000 (12:35 +0000)
commit9df6c0e4edf8810c7ed31f78eeb5ee4838d3c114
treea2b615915d7dede9b8326229a4fd7631de438973
parentf0e98f1bb47ab5827d89bd6a16f4263e20549da3
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
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/asyncwait-1.c