Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-15 Thread Nathan Sidwell
On 01/14/16 18:10, Jakub Jelinek wrote: On Thu, Jan 14, 2016 at 03:02:28PM -0800, Cesar Philippidis wrote: Is this a case of the Fortran FE OpenACC bits not annotating some artificial object correctly? I don't think it's specific to fortran. You can have reference types in c++ too. Actually, J

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-14 Thread Jakub Jelinek
On Thu, Jan 14, 2016 at 03:02:28PM -0800, Cesar Philippidis wrote: > > Is this a case of the Fortran FE OpenACC bits not annotating some > > artificial object correctly? > > I don't think it's specific to fortran. You can have reference types in > c++ too. Actually, Jakub's comment reminded me to

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-14 Thread Cesar Philippidis
On 01/14/2016 06:18 AM, Nathan Sidwell wrote: > On 01/13/16 17:44, Jakub Jelinek wrote: >> On Wed, Jan 13, 2016 at 11:35:08PM +0100, Marek Polacek wrote: >>> On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote: --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -5994,6 +5994,

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-14 Thread Nathan Sidwell
On 01/13/16 17:44, Jakub Jelinek wrote: On Wed, Jan 13, 2016 at 11:35:08PM +0100, Marek Polacek wrote: On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote: --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -5994,6 +5994,11 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, tree dec

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-13 Thread Jakub Jelinek
On Wed, Jan 13, 2016 at 11:35:08PM +0100, Marek Polacek wrote: > On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote: > > --- a/gcc/gimplify.c > > +++ b/gcc/gimplify.c > > @@ -5994,6 +5994,11 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, > > tree decl, unsigned flags) > > {

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-13 Thread Cesar Philippidis
On 01/13/2016 02:35 PM, Marek Polacek wrote: > On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote: >> --- a/gcc/gimplify.c >> +++ b/gcc/gimplify.c >> @@ -5994,6 +5994,11 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, >> tree decl, unsigned flags) >> { >>const char *rkind

Re: [openacc] implicit non-scalars data mapping in kernels

2016-01-13 Thread Marek Polacek
On Wed, Jan 13, 2016 at 02:29:21PM -0800, Cesar Philippidis wrote: > --- a/gcc/gimplify.c > +++ b/gcc/gimplify.c > @@ -5994,6 +5994,11 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, > tree decl, unsigned flags) > { >const char *rkind; >bool on_device = false; > + tree type = TREE_