Re: [PATCH][PR67666] Handle single restrict pointer in struct in create_variable_info_for_1

2015-10-23 Thread Tom de Vries
On 29/09/15 10:29, Richard Biener wrote: On Tue, 29 Sep 2015, Tom de Vries wrote: On 22/09/15 09:49, Richard Biener wrote: On Tue, 22 Sep 2015, Tom de Vries wrote: Hi, Consider this test-case: struct ps { int *__restrict__ p; }; void f (struct ps &__restrict__ ps1) { *(ps1.p) =

Re: [PATCH][PR67666] Handle single restrict pointer in struct in create_variable_info_for_1

2015-09-29 Thread Tom de Vries
On 22/09/15 09:49, Richard Biener wrote: On Tue, 22 Sep 2015, Tom de Vries wrote: Hi, Consider this test-case: struct ps { int *__restrict__ p; }; void f (struct ps &__restrict__ ps1) { *(ps1.p) = 1; } Atm, the restrict on p has no effect. Now, say we add a field to the struct:

Re: [PATCH][PR67666] Handle single restrict pointer in struct in create_variable_info_for_1

2015-09-29 Thread Richard Biener
On Tue, 29 Sep 2015, Tom de Vries wrote: > On 22/09/15 09:49, Richard Biener wrote: > > On Tue, 22 Sep 2015, Tom de Vries wrote: > > > > > Hi, > > > > > > Consider this test-case: > > > > > > struct ps > > > { > > >int *__restrict__ p; > > > }; > > > > > > void > > > f (struct ps

[PATCH][PR67666] Handle single restrict pointer in struct in create_variable_info_for_1

2015-09-22 Thread Tom de Vries
Hi, Consider this test-case: struct ps { int *__restrict__ p; }; void f (struct ps &__restrict__ ps1) { *(ps1.p) = 1; } Atm, the restrict on p has no effect. Now, say we add a field to the struct: struct ps { int *__restrict__ p; int a; }; Then the restrict on p does have the

Re: [PATCH][PR67666] Handle single restrict pointer in struct in create_variable_info_for_1

2015-09-22 Thread Richard Biener
On Tue, 22 Sep 2015, Tom de Vries wrote: > Hi, > > Consider this test-case: > > struct ps > { > int *__restrict__ p; > }; > > void > f (struct ps &__restrict__ ps1) > { > *(ps1.p) = 1; > } > > > Atm, the restrict on p has no effect. Now, say we add a field to the struct: > > struct ps >