Re: [RFC] PR35503 - warn for restricted pointers

2016-08-26 Thread Richard Biener
On Fri, 26 Aug 2016, Prathamesh Kulkarni wrote: > Hi Richard, > I was trying to have a look at PR35503. > The attached patch tries to warn when an argument is passed to a > restrict-qualified parameter > and the argument could alias with other argument. > > For the following test-case: > int f2(i

[RFC] PR35503 - warn for restricted pointers

2016-08-26 Thread Prathamesh Kulkarni
Hi Richard, I was trying to have a look at PR35503. The attached patch tries to warn when an argument is passed to a restrict-qualified parameter and the argument could alias with other argument. For the following test-case: int f2(int *restrict x, int *y); void f(void) { int a; f2 (&a, &a);