Re: fold_indirect_ref bogous

2005-05-10 Thread Richard Guenther
On Tue, 3 May 2005, Jeffrey A Law wrote: > On Wed, 2005-04-27 at 16:19 +0200, Richard Guenther wrote: > > fold_indirect_ref, called from the gimplifier happily converts ^^ > > something like the following patch fixes this. > Right. Given that I'd seen similar problems with som

Re: fold_indirect_ref bogous

2005-05-03 Thread Jeffrey A Law
On Wed, 2005-04-27 at 16:19 +0200, Richard Guenther wrote: > fold_indirect_ref, called from the gimplifier happily converts > > const char *a; > > ... > > *(char *)&a[x] = 0; > > to > > a[x] = 0; > > confusing alias1 and ICEing in verify_ssa: > > /net/alwazn/home/rguenth/src/gcc/cvs/gcc-4

Re: fold_indirect_ref bogous

2005-05-02 Thread Jeffrey A Law
On Wed, 2005-04-27 at 19:14 +0200, Richard Guenther wrote: > Jeffrey A Law wrote: > > On Wed, 2005-04-27 at 16:19 +0200, Richard Guenther wrote: > > > >>fold_indirect_ref, called from the gimplifier happily converts > >> > >> const char *a; > >> > >>... > >> > >> *(char *)&a[x] = 0; > >> > >>to >

Re: fold_indirect_ref bogous

2005-04-27 Thread Richard Guenther
Jeffrey A Law wrote: > On Wed, 2005-04-27 at 16:19 +0200, Richard Guenther wrote: > >>fold_indirect_ref, called from the gimplifier happily converts >> >> const char *a; >> >>... >> >> *(char *)&a[x] = 0; >> >>to >> >> a[x] = 0; >> >>confusing alias1 and ICEing in verify_ssa: >> >>/net/alwazn/home

Re: fold_indirect_ref bogous

2005-04-27 Thread Jeffrey A Law
On Wed, 2005-04-27 at 16:19 +0200, Richard Guenther wrote: > fold_indirect_ref, called from the gimplifier happily converts > > const char *a; > > ... > > *(char *)&a[x] = 0; > > to > > a[x] = 0; > > confusing alias1 and ICEing in verify_ssa: > > /net/alwazn/home/rguenth/src/gcc/cvs/gcc-4

fold_indirect_ref bogous

2005-04-27 Thread Richard Guenther
fold_indirect_ref, called from the gimplifier happily converts const char *a; ... *(char *)&a[x] = 0; to a[x] = 0; confusing alias1 and ICEing in verify_ssa: /net/alwazn/home/rguenth/src/gcc/cvs/gcc-4.1/gcc/testsuite/gcc.c-torture/execute/20031215-1.c:11: error: Statement makes a memory