diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-04-14 14:31:32 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2006-04-14 14:31:32 +0000 |
commit | 43b373a2a5115268b5320b24f770a02b60353557 (patch) | |
tree | 9b7e85735089c4ca6a211da08638cf2f0a7f0793 /gcc/local-alloc.c | |
parent | 68ba34f361d5287404bde9283b9df315f4a2c147 (diff) | |
download | gcc-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/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index f751c0f..c103400 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -2537,8 +2537,10 @@ rest_of_handle_local_alloc (void) allocate_reg_info (max_regno, FALSE, TRUE); /* And the reg_equiv_memory_loc array. */ - VARRAY_GROW (reg_equiv_memory_loc_varray, max_regno); - reg_equiv_memory_loc = &VARRAY_RTX (reg_equiv_memory_loc_varray, 0); + VEC_safe_grow (rtx, gc, reg_equiv_memory_loc_vec, max_regno); + memset (VEC_address (rtx, reg_equiv_memory_loc_vec), 0, + sizeof (rtx) * max_regno); + reg_equiv_memory_loc = VEC_address (rtx, reg_equiv_memory_loc_vec); allocate_initial_values (reg_equiv_memory_loc); |