diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-20 11:45:26 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-20 11:45:26 +0000 |
commit | 2bc9fc534419994243e17f21b906cad1795461e1 (patch) | |
tree | 9c02ce26170091fbc2cb20b4806f8a3edce09bd1 /gcc/passes.c | |
parent | cc69bcd02109a1bd756944f5c7a9b36f37d6672c (diff) | |
download | gcc-2bc9fc534419994243e17f21b906cad1795461e1.tar.gz |
* Makefile.in (GTFILES): Add $(srcdir)/reload.h.
* gengtype.c (open_base_files): Include reload.h in ifiles.
* reload.h (reg_equiv_memory_loc_varray): Declare.
* reload1.c (reg_equiv_memory_loc_varray): New variable.
(init_reload): Initialize it.
(reload): Instead of freeing reg_equiv_memory_loc, 'grow'
reg_equiv_memory_loc_varray to size 0.
* ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
growing reg_equiv_memory_loc_varray to the desired size.
* passes.c (rest_of_handle_old_regalloc): Likewise.
* reload.c: Amend comment on calling init_reload.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82050 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 379df57415f..841e361149c 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -624,7 +624,8 @@ rest_of_handle_old_regalloc (tree decl, rtx insns) allocate_reg_info (max_regno, FALSE, TRUE); /* And the reg_equiv_memory_loc array. */ - reg_equiv_memory_loc = xcalloc (max_regno, sizeof (rtx)); + VARRAY_GROW (reg_equiv_memory_loc_varray, max_regno); + reg_equiv_memory_loc = &VARRAY_RTX (reg_equiv_memory_loc_varray, 0); allocate_initial_values (reg_equiv_memory_loc); |