This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cse.c crash bounds overwrite by recent patch
- To: robertl at dgii dot com (Robert Lipe)
- Subject: Re: cse.c crash bounds overwrite by recent patch
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Tue, 6 Oct 1998 18:20:04 +0100 (BST)
- Cc: egcs at cygnus dot com, law at cygnus dot com
> # Incrementing an array pointer of an alloca()'ed array seems a little
> # funky to me, but sometimes you've gotta do what you've gotta do.
Oops - I didn't mean to do that.
Strange that this incorrect code actually seemed to fix what it was supposed
to fix and didn't show any problems in a number of bootstrap and torture
tests.
Tue Oct 6 18:12:05 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* cse.c (insert_regs): Fix bug in Sep 24 change.
Index: cse.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cse.c,v
retrieving revision 1.47
diff -p -r1.47 cse.c
*** cse.c 1998/09/24 09:59:41 1.47
--- cse.c 1998/10/06 17:12:21
*************** insert_regs (x, classp, modified)
*** 1113,1119 ****
will do the right thing. */
if (reg_in_table[regno] >= 0
&& reg_tick[regno] == reg_in_table[regno] + 1)
! reg_tick++;
mention_regs (x);
return 1;
}
--- 1113,1119 ----
will do the right thing. */
if (reg_in_table[regno] >= 0
&& reg_tick[regno] == reg_in_table[regno] + 1)
! reg_tick[regno]++;
mention_regs (x);
return 1;
}