Re: [gomp4.1] calculate pointer offsets for depend(sink)

2015-07-22 Thread Jakub Jelinek
On Tue, Jul 21, 2015 at 03:53:47PM -0700, Aldy Hernandez wrote: > commit 61b2d11dfa8083014b385fc6ec6564fc18c41c72 > Author: Aldy Hernandez > Date: Tue Jul 21 08:02:39 2015 -0700 > > * tree-pretty-print.c (dump_omp_clause): Pass TYPE_SIGN to > wi::neg_p. > c/ > * c-typeck.c

Re: [gomp4.1] calculate pointer offsets for depend(sink)

2015-07-21 Thread Aldy Hernandez
On 07/21/2015 09:30 AM, Jakub Jelinek wrote: On Tue, Jul 21, 2015 at 09:08:27AM -0700, Aldy Hernandez wrote: --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -12492,6 +12492,24 @@ c_finish_omp_clauses (tree clauses, bool declare_simd) if (OMP_CLAUSE_DEPEND_KIND (c) == OMP_CLAUSE_DEPEND

Re: [gomp4.1] calculate pointer offsets for depend(sink)

2015-07-21 Thread Jakub Jelinek
On Tue, Jul 21, 2015 at 09:08:27AM -0700, Aldy Hernandez wrote: > --- a/gcc/c/c-typeck.c > +++ b/gcc/c/c-typeck.c > @@ -12492,6 +12492,24 @@ c_finish_omp_clauses (tree clauses, bool > declare_simd) > if (OMP_CLAUSE_DEPEND_KIND (c) == OMP_CLAUSE_DEPEND_SINK) > { > gcc_

[gomp4.1] calculate pointer offsets for depend(sink)

2015-07-21 Thread Aldy Hernandez
The follow adjusts pointer offsets in depend(sink) variables by the underlying size of the object. How does this look? Aldy commit e0ff9e02210c2796e4eafa905a08897e2d00999f Author: Aldy Hernandez Date: Tue Jul 21 08:02:39 2015 -0700 * tree-pretty-print.c (dump_omp_clause): Pass TYPE_