aboutsummaryrefslogtreecommitdiff
path: root/gcc/reg-stack.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@freesoft.cz>1999-04-12 17:25:38 -0600
committerJeff Law <law@gcc.gnu.org>1999-04-12 17:25:38 -0600
commit791ca74ce420d714df15000eea71fec7f8f30e69 (patch)
tree0e265175347fb7d7f4ebbbe7f83e4c99a615c9fa /gcc/reg-stack.c
parentd78b684f612508cbf420c6688523dc5f5950bb61 (diff)
downloadgcc-791ca74ce420d714df15000eea71fec7f8f30e69.zip
gcc-791ca74ce420d714df15000eea71fec7f8f30e69.tar.gz
gcc-791ca74ce420d714df15000eea71fec7f8f30e69.tar.bz2
* reg-stack.c (check_stack_regs_mentioned): Remove variable SIZE.
From-SVN: r26386
Diffstat (limited to 'gcc/reg-stack.c')
-rw-r--r--gcc/reg-stack.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c
index f843b17..4a27296 100644
--- a/gcc/reg-stack.c
+++ b/gcc/reg-stack.c
@@ -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;