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: Thomas Schwinge <thomas at codesourcery dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 23 May 2017 18:05:50 +0200
- Subject: Re: OpenACC 2.5 default (present) clause
- Authentication-results: sourceware.org; auth=none
- References: <87a87s5k6w.fsf@hertz.schwinge.homeip.net> <20170510154836.GA1809@tucnak> <87k25dyn5e.fsf@hertz.schwinge.homeip.net> <20170523104006.GO8499@tucnak>
Hi!
On Tue, 23 May 2017 12:40:06 +0200, Jakub Jelinek <jakub@redhat.com> wrote:
> 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.
So, the union of the C/C++ and Fortran variants is "private |
firstprivate | shared | none", and sorting these alphabetically, you'd
get "firstprivate | none | private | shared" as I posted? Anyway, no
point on spending more time on this. ;-)
Grüße
Thomas