c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA...
authorCesar Philippidis <cesar@codesourcery.com>
Fri, 2 Dec 2016 14:54:39 +0000 (06:54 -0800)
committerCesar Philippidis <cesar@gcc.gnu.org>
Fri, 2 Dec 2016 14:54:39 +0000 (06:54 -0800)
commitc5af52eb8cc208890ccb3bdce75b35bf5bbaa8bf
tree2f0ce488844285e012110f8b14e864975bded2ec
parent69a71a6d071a5eae8a06282351e53d8c383aba9a
c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA...

gcc/c/
* c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
EXIT_DATA,WAIT} are not used in compound statements.
(c_parser_oacc_enter_exit_data): Update diagnostics.

gcc/cp/
* parser.c (cp_parser_oacc_enter_exit_data): Update diagnostics.
(cp_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
EXIT_DATA,WAIT} are not used in compound statements.

gcc/testsuite/
* c-c++-common/goacc/data-2.c: Adjust test.
* c-c++-common/goacc/executeables-1.c: New test.
* g++.dg/goacc/data-1.C: Adjust test.

Co-Authored-By: James Norris <jnorris@codesourcery.com>
From-SVN: r243185
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/data-2.c
gcc/testsuite/c-c++-common/goacc/executeables-1.c [new file with mode: 0644]
gcc/testsuite/g++.dg/goacc/data-1.C