aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-04-14 14:31:32 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2006-04-14 14:31:32 +0000
commit43b373a2a5115268b5320b24f770a02b60353557 (patch)
tree9b7e85735089c4ca6a211da08638cf2f0a7f0793 /gcc/reload1.c
parent68ba34f361d5287404bde9283b9df315f4a2c147 (diff)
downloadgcc-43b373a2a5115268b5320b24f770a02b60353557.zip
gcc-43b373a2a5115268b5320b24f770a02b60353557.tar.gz
gcc-43b373a2a5115268b5320b24f770a02b60353557.tar.bz2
local-alloc.c (rest_of_handle_local_alloc): Use VEC instead of VARRAY.
* local-alloc.c (rest_of_handle_local_alloc): Use VEC instead of VARRAY. * reload1.c (reg_equiv_memory_loc_varray): Rename to reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *. (init_reload, reload): Use VEC instead of VARRAY. * reload.h: Update the prototype for reg_equiv_memory_loc_varray. From-SVN: r112955
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index b9d7f8e..d791da6 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -112,7 +112,7 @@ rtx *reg_equiv_memory_loc;
/* We allocate reg_equiv_memory_loc inside a varray so that the garbage
collector can keep track of what is inside. */
-varray_type reg_equiv_memory_loc_varray;
+VEC(rtx,gc) *reg_equiv_memory_loc_vec;
/* Element N is the address of stack slot to which pseudo reg N is equivalent.
This is used when the address is not valid as a memory address
@@ -496,7 +496,6 @@ init_reload (void)
INIT_REG_SET (&spilled_pseudos);
INIT_REG_SET (&pseudos_counted);
- VARRAY_RTX_INIT (reg_equiv_memory_loc_varray, 0, "reg_equiv_memory_loc");
}
/* List of insn chains that are currently unused. */
@@ -1251,7 +1250,7 @@ reload (rtx first, int global)
free (reg_equiv_invariant);
reg_equiv_constant = 0;
reg_equiv_invariant = 0;
- VARRAY_GROW (reg_equiv_memory_loc_varray, 0);
+ VEC_free (rtx, gc, reg_equiv_memory_loc_vec);
reg_equiv_memory_loc = 0;
if (offsets_known_at)