Tighten syntax checking for OpenACC routine construct in C
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 24 May 2016 14:00:39 +0000 (16:00 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 24 May 2016 14:00:39 +0000 (16:00 +0200)
commita04e69c0b12712bb90762dd20d7ffcd6f04e1da6
treeb2e6b36f6d180f94e905249d21e046a58742d204
parentd4b5c77d36f4a0957fa6053eaa0cb42a8af650e9
Tighten syntax checking for OpenACC routine construct in C

gcc/c/
* c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
gcc/testsuite/
* c-c++-common/goacc/routine-5.c: Add tests.
* g++.dg/goacc/routine-2.C: Remove duplicate tests.
* gfortran.dg/goacc/routine-6.f90: Add tests.

From-SVN: r236639
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/routine-5.c
gcc/testsuite/g++.dg/goacc/routine-2.C
gcc/testsuite/gfortran.dg/goacc/routine-6.f90