Commit 791ca74c by Jan Hubicka Committed by Jeff Law

* reg-stack.c (check_stack_regs_mentioned): Remove variable SIZE.

From-SVN: r26386
parent d78b684f
Mon Apr 12 14:58:30 MET DST 1999 Jan Hubicka <hubicka@freesoft.cz>
* reg-stack.c (check_stack_regs_mentioned): Remove variable SIZE.
Mon Apr 12 19:15:17 1999 Daniel Jacobowitz <dan@debian.org> Mon Apr 12 19:15:17 1999 Daniel Jacobowitz <dan@debian.org>
* rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Add missing backslash. * rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Add missing backslash.
......
...@@ -296,14 +296,9 @@ check_stack_regs_mentioned (insn) ...@@ -296,14 +296,9 @@ check_stack_regs_mentioned (insn)
{ {
unsigned int uid = INSN_UID (insn); unsigned int uid = INSN_UID (insn);
if (uid >= VARRAY_SIZE (stack_regs_mentioned_data)) if (uid >= VARRAY_SIZE (stack_regs_mentioned_data))
{ /* Allocate some extra size to avoid too many reallocs, but
unsigned int size = VARRAY_SIZE (stack_regs_mentioned_data); do not grow exponentially. */
VARRAY_GROW (stack_regs_mentioned_data, uid + uid / 20);
/* Allocate some extra size to avoid too many reallocs, but
do not grow exponentially. */
size = uid + uid / 20;
VARRAY_GROW (stack_regs_mentioned_data, size);
}
if (stack_regs_mentioned_p (PATTERN (insn))) if (stack_regs_mentioned_p (PATTERN (insn)))
{ {
VARRAY_CHAR (stack_regs_mentioned_data, uid) = 1; VARRAY_CHAR (stack_regs_mentioned_data, uid) = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment