This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Fix OpenMP parsing of the specification part in functions (PR fortran/71704)
On Fri, Jul 08, 2016 at 11:26:12AM -0700, Cesar Philippidis wrote:
> There's probably no advantage. I just didn't want to change something
> that wasn't broken. But from a consistency standpoint, I agree that all
> of the directives except for routine and declare could use matcha. This
> patch makes that change.
>
> Is this OK?
Ok for trunk/6.2/5.5, thanks.
> 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.
Jakub