This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: OpenACC 2.5 default (present) clause
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 23 May 2017 12:40:06 +0200
- Subject: Re: OpenACC 2.5 default (present) clause
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jakub at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B9A9680C10
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B9A9680C10
- References: <87a87s5k6w.fsf@hertz.schwinge.homeip.net> <20170510154836.GA1809@tucnak> <87k25dyn5e.fsf@hertz.schwinge.homeip.net>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, May 19, 2017 at 03:46:53PM +0200, Thomas Schwinge wrote:
> > > - /* OpenMP clause: default. */
> > > + /* OpenACC clause: default ( none | present ).
> > > +
> > > + OpenMP clause: default ( firstprivate | none | private | shared ). */
> > > OMP_CLAUSE_DEFAULT,
> > >
> > > /* OpenACC/OpenMP clause: collapse (constant-integer-expression). */
> >
> > I think this hunk isn't needed (plus it is not accurate anyway).
>
> Now you got me curious: why isn't it accurate?
Because the clause in OpenMP is default ( shared | none ) for C/C++
and default ( private | firstprivate | shared | none ) for Fortran.
Jakub