r237888 - in /trunk/gcc: fortran/ChangeLog fort...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Thu Jun 30 17:45:00 GMT 2016
Author: jakub
Date: Thu Jun 30 17:45:21 2016
New Revision: 237888
URL: https://gcc.gnu.org/viewcvs?rev=237888&root=gcc&view=rev
Log:
PR fortran/71704
* parse.c (matchs, matcho): Move right before decode_omp_directive.
If spec_only, only gfc_match the keyword and if successful, goto
do_spec_only.
(matchds, matchdo): Define.
(decode_omp_directive): Add spec_only local var and set it.
Use matchds or matchdo macros instead of matchs or matcho
for declare target, declare simd, declare reduction and threadprivate
directives. Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
directive could be matched.
(next_statement): For ST_GET_FCN_CHARACTERISTICS restore
gfc_current_locus from old_locus even if there is no label.
* gfortran.dg/gomp/pr71704.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/gomp/pr71704.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/parse.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list