cse.c crash bounds overwrite by recent patch
Joern Rennecke
amylaar@cygnus.co.uk
Tue Oct 6 16:19:00 GMT 1998
> # 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;
}
More information about the Gcc
mailing list