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

From-SVN: r26386
This commit is contained in:
Jan Hubicka 1999-04-12 17:25:38 -06:00 committed by Jeff Law
parent d78b684f61
commit 791ca74ce4
2 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,7 @@
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>
* rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Add missing backslash.

View File

@ -296,14 +296,9 @@ check_stack_regs_mentioned (insn)
{
unsigned int uid = INSN_UID (insn);
if (uid >= VARRAY_SIZE (stack_regs_mentioned_data))
{
unsigned int size = VARRAY_SIZE (stack_regs_mentioned_data);
/* 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);
}
/* Allocate some extra size to avoid too many reallocs, but
do not grow exponentially. */
VARRAY_GROW (stack_regs_mentioned_data, uid + uid / 20);
if (stack_regs_mentioned_p (PATTERN (insn)))
{
VARRAY_CHAR (stack_regs_mentioned_data, uid) = 1;