This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: OpenACC 2.5 default (present) clause


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]