This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: wrong alias-analysis and strange x86-code
On Wed, Oct 25, 2000 at 04:52:14PM +0100, Bernd Schmidt wrote:
> > int x,*p=&x;
> >
> > main()
> > {
> > int i=0;
> > x=1;
> > p[i]=2;
> > printf("%d\n",x);
> > }
Would you transform this into an executable test case as well?
> * expr.c (expand_expr, case INDIRECT_REF): If the address is a
> PLUS, that does not prove the object is in a structure.
Ok.
> /* If address was computed by addition,
> mark this as an element of an aggregate. */
The comment is now wrong, btw.
r~