This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: wrong alias-analysis and strange x86-code


On Wed, 25 Oct 2000, Richard Henderson wrote:

> 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?

Done; checked in as execute/20001027-1.c.

> > 	* 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.

Checked in on the 2.95 branch after removing the comment.


Bernd


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]