]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: parse.c (matcha): Define.
authorCesar Philippidis <cesar@codesourcery.com>
Fri, 8 Jul 2016 21:58:57 +0000 (14:58 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Fri, 8 Jul 2016 21:58:57 +0000 (14:58 -0700)
commit1e17a8f8c66013417c39ac6820880aba11ea73bb
tree3acc69fe7b42b026b6bbf63ea8665c8edd944f70
parenta9571e58f5f994dbc9f72eea2e80a0fdcd6f287a
backport: parse.c (matcha): Define.

Backport from trunk:
2016-07-08  Cesar Philippidis  <cesar@codesourcery.com>

gcc/fortran/
* parse.c (matcha): Define.
(decode_oacc_directive): Add spec_only local var and set it.  Use
matcha to parse acc directives except for routine and declare.  Return
ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
matched.

gcc/testsuite/
* gfortran.dg/goacc/pr71704.f90: New test.

From-SVN: r238184
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr71704.f90 [new file with mode: 0644]