gcc-2.95pre: Virtual array reg_single_usage element 184 out of bounds, at ../../../egcsm/gcc/loop.c:6902
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Sun May 23 12:00:00 GMT 1999
Am Sat, 22 May 1999 schrieb Franz Sirl:
>Hi,
>
>gcc-2.95pre on powerpc-linux-gnu produces this error message:
>
>decode.c:42: Virtual array reg_single_usage element 184 out of bounds, at ../../../egcsm/gcc/loop.c:6902
This seems to be a simple oversight, in strength_reduce() one VARRAY_GROW was
missing.
The attached patch fixes this.
Franz.
* loop.c (strength_reduce): grow the reg_single_usage varray too
Index: loop.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/loop.c,v
retrieving revision 1.156
diff -u -p -r1.156 loop.c
--- loop.c 1999/05/13 00:57:05 1.156
+++ loop.c 1999/05/23 18:48:55
@@ -4198,6 +4198,7 @@ strength_reduce (scan_start, end, loop_t
VARRAY_GROW (set_in_loop, nregs);
VARRAY_GROW (n_times_set, nregs);
VARRAY_GROW (may_not_optimize, nregs);
+ VARRAY_GROW (reg_single_usage, nregs);
}
if (! validate_change (next->insn, next->location, add_val, 0))
More information about the Gcc-bugs
mailing list