Re: alias: Varying struct and fixed scalar question

2006-02-01 Thread Andrew Haley
Andreas Krebbel writes: > > > struct foo { int n; }; > > extern unsigned long c = 0; > > > > { > > int b; > > > > b = 2; > > ((struct foo*)(&b + c))->n = 3; > > } > > For having a true dependency the example should look like this: > > struct foo { int n; }; > extern unsign

Re: alias: Varying struct and fixed scalar question

2006-02-01 Thread Andreas Krebbel
> struct foo { int n; }; > extern unsigned long c = 0; > > { > int b; > > b = 2; > ((struct foo*)(&b + c))->n = 3; > } For having a true dependency the example should look like this: struct foo { int n; }; extern unsigned long c = 0; { int b; int d; b = 2; d = ((struct foo*)(&b

Re: alias: Varying struct and fixed scalar question

2006-02-01 Thread Richard Guenther
On 2/1/06, Andreas Krebbel <[EMAIL PROTECTED]> wrote: > Hi, > > in true_dependence (alias.c) a varying struct > address is considered to never alias a fixed scalar value. This > rule is triggered also in something like the following: > > struct foo { int n; }; > extern unsigned long c = 0; > > { >