Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Cesar Philippidis
On 11/04/2015 09:15 AM, Thomas Schwinge wrote: >> --- a/gcc/fortran/trans-openmp.c >> +++ b/gcc/fortran/trans-openmp.c > >> @@ -3449,16 +3478,28 @@ gfc_trans_oacc_combined_directive (gfc_code *code) >>sizeof (construct_clauses)); >>loop_clauses.collapse =

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Jakub Jelinek
On Wed, Nov 04, 2015 at 09:39:50AM -0800, Cesar Philippidis wrote: > On 11/04/2015 09:15 AM, Thomas Schwinge wrote: > > >> --- a/gcc/fortran/trans-openmp.c > >> +++ b/gcc/fortran/trans-openmp.c > > > >> @@ -3449,16 +3478,28 @@ gfc_trans_oacc_combined_directive (gfc_code *code) > >>

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Thomas Schwinge
Hi Cesar! On Tue, 3 Nov 2015 19:06:50 -0800, Cesar Philippidis wrote: > This patch updates the fortran front end so that it supports the acc > loop clauses in a similar manner to both the c and c++ front ends in > addition to addressing a couple of other loose ends. >

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Thomas Schwinge
Hi Jakub! On Wed, 4 Nov 2015 11:30:28 +0100, Jakub Jelinek wrote: > > gfc_match_oacc_update (void) > > { > >gfc_omp_clauses *c; > > + locus here = gfc_current_locus; > > + > >if (gfc_match_omp_clauses (, OACC_UPDATE_CLAUSES, false, false, true) > >!=

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Jakub Jelinek
On Wed, Nov 04, 2015 at 06:15:14PM +0100, Thomas Schwinge wrote: > > --- a/gcc/fortran/openmp.c > > +++ b/gcc/fortran/openmp.c > > > @@ -3028,6 +3015,22 @@ resolve_omp_clauses (gfc_code *code, gfc_omp_clauses > > *omp_clauses, > > n->sym->mark = 1; > > } > > > > + /* OpenACC

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Thomas Schwinge
Hi! On Wed, 4 Nov 2015 18:21:36 +0100, Jakub Jelinek wrote: > On Wed, Nov 04, 2015 at 06:15:14PM +0100, Thomas Schwinge wrote: > > > --- a/gcc/fortran/openmp.c > > > +++ b/gcc/fortran/openmp.c > > > > > @@ -3028,6 +3015,22 @@ resolve_omp_clauses (gfc_code *code, > > >

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Jakub Jelinek
On Wed, Nov 04, 2015 at 06:20:06PM +0100, Thomas Schwinge wrote: > Hi Jakub! > > On Wed, 4 Nov 2015 11:30:28 +0100, Jakub Jelinek wrote: > > > gfc_match_oacc_update (void) > > > { > > >gfc_omp_clauses *c; > > > + locus here = gfc_current_locus; > > > + > > >if

Re: [openacc] acc loop updates in fortran

2015-11-04 Thread Jakub Jelinek
On Tue, Nov 03, 2015 at 07:06:50PM -0800, Cesar Philippidis wrote: > @@ -856,13 +857,14 @@ gfc_match_omp_clauses (gfc_omp_clauses **cp, uint64_t > mask, >if ((mask & OMP_CLAUSE_DEFAULT) > && c->default_sharing == OMP_DEFAULT_UNKNOWN) > { > - if (gfc_match ("default (

[openacc] acc loop updates in fortran

2015-11-03 Thread Cesar Philippidis
This patch updates the fortran front end so that it supports the acc loop clauses in a similar manner to both the c and c++ front ends in addition to addressing a couple of other loose ends. Specifically: * the tile clause now supports a list of arguments like c and c++ * made the default