Re: [OpenACC 5/11] C++ FE changes

2015-10-27 Thread Jakub Jelinek
On Mon, Oct 26, 2015 at 03:35:20PM -0700, Cesar Philippidis wrote: > I used that generic message for all of those clauses except for _GANG, > _WORKER and _VECTOR. The gang clause, at the very least, needed it to > disambiguate the static and num arguments. If you want I can handle > _WORKER and

Re: [OpenACC 5/11] C++ FE changes

2015-10-27 Thread Nathan Sidwell
On 10/27/15 00:59, Jakub Jelinek wrote: On Mon, Oct 26, 2015 at 03:35:20PM -0700, Cesar Philippidis wrote: I used that generic message for all of those clauses except for _GANG, _WORKER and _VECTOR. The gang clause, at the very least, needed it to disambiguate the static and num arguments. If

Re: [OpenACC 5/11] C++ FE changes

2015-10-26 Thread Jakub Jelinek
On Sat, Oct 24, 2015 at 02:11:41PM -0700, Cesar Philippidis wrote: > @@ -29582,6 +29592,144 @@ cp_parser_oacc_data_clause_deviceptr (cp_parser > *parser, tree list) >return list; > } > > +/* OpenACC 2.0: > + auto > + independent > + nohost > + seq */ > + > +static tree >

Re: [OpenACC 5/11] C++ FE changes

2015-10-26 Thread Cesar Philippidis
On 10/26/2015 03:20 AM, Jakub Jelinek wrote: > On Sat, Oct 24, 2015 at 02:11:41PM -0700, Cesar Philippidis wrote: >> --- a/gcc/cp/semantics.c >> +++ b/gcc/cp/semantics.c >> @@ -5911,6 +5911,31 @@ finish_omp_clauses (tree clauses, bool allow_fields, >> bool declare_simd) >>

Re: [OpenACC 5/11] C++ FE changes

2015-10-24 Thread Cesar Philippidis
On 10/23/2015 07:37 PM, Cesar Philippidis wrote: > On 10/23/2015 01:25 PM, Cesar Philippidis wrote: >> On 10/22/2015 01:52 AM, Jakub Jelinek wrote: >>> On Wed, Oct 21, 2015 at 03:18:55PM -0400, Nathan Sidwell wrote: This patch is the C++ changes matching the C ones of patch 4. In

Re: [OpenACC 5/11] C++ FE changes

2015-10-23 Thread Cesar Philippidis
On 10/23/2015 01:25 PM, Cesar Philippidis wrote: > On 10/22/2015 01:52 AM, Jakub Jelinek wrote: >> On Wed, Oct 21, 2015 at 03:18:55PM -0400, Nathan Sidwell wrote: >>> This patch is the C++ changes matching the C ones of patch 4. In >>> finish_omp_clauses, the gang, worker, & vector clauses are

Re: Re: [OpenACC 5/11] C++ FE changes

2015-10-23 Thread Cesar Philippidis
On 10/22/2015 01:52 AM, Jakub Jelinek wrote: > On Wed, Oct 21, 2015 at 03:18:55PM -0400, Nathan Sidwell wrote: >> This patch is the C++ changes matching the C ones of patch 4. In >> finish_omp_clauses, the gang, worker, & vector clauses are handled the same >> as OpenMP's 'num_threads' clause.

Re: [OpenACC 5/11] C++ FE changes

2015-10-22 Thread Jakub Jelinek
On Wed, Oct 21, 2015 at 03:18:55PM -0400, Nathan Sidwell wrote: > This patch is the C++ changes matching the C ones of patch 4. In > finish_omp_clauses, the gang, worker, & vector clauses are handled the same > as OpenMP's 'num_threads' clause. One change to num_threads is the > augmentation of

Re: [OpenACC 5/11] C++ FE changes

2015-10-21 Thread Nathan Sidwell
This patch is the C++ changes matching the C ones of patch 4. In finish_omp_clauses, the gang, worker, & vector clauses are handled the same as OpenMP's 'num_threads' clause. One change to num_threads is the augmentation of a diagnostic to add %<...%> markers to the clause name. nathan