[Bug tree-optimization/31358] IV-OPTs produces a weird MEM_REF
rakdver at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Mar 26 09:17:00 GMT 2007
------- Comment #1 from rakdver at gcc dot gnu dot org 2007-03-26 10:17 -------
(In reply to comment #0)
> For:
> int *f(int *a, int b, int c)
> {
> int i;
> a --;
> *a = 1;
> for (i = 0;i<b;i+=c)
> (a[i]) = 0;
> return a;
> }
> ----------------CUT----------------
> I get in the final_cleanup:
> MEM[index: ivtmp.35, offset: 4294967292] = 0;
>
>
> And I noticed that ivtmp.29 is of type "long unsigned int" which seems wrong as
> it is actually the pointer.
no, this is OK (whether it is a good design choice is another thing, I will
think about that).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31358
More information about the Gcc-bugs
mailing list