This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31358] IV-OPTs produces a weird MEM_REF
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2007 09:17:33 -0000
- Subject: [Bug tree-optimization/31358] IV-OPTs produces a weird MEM_REF
- References: <bug-31358-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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