aboutsummaryrefslogtreecommitdiff
path: root/gcc/ra.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@superh.com>2004-05-20 11:45:26 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2004-05-20 12:45:26 +0100
commit965ccc5a1cfc6ad1df67c8e88cfe5f044272eb4f (patch)
tree9c02ce26170091fbc2cb20b4806f8a3edce09bd1 /gcc/ra.c
parent98d784a90b1eaf326983efce3465531ba3b79d00 (diff)
downloadgcc-965ccc5a1cfc6ad1df67c8e88cfe5f044272eb4f.zip
gcc-965ccc5a1cfc6ad1df67c8e88cfe5f044272eb4f.tar.gz
gcc-965ccc5a1cfc6ad1df67c8e88cfe5f044272eb4f.tar.bz2
Makefile.in (GTFILES): Add $(srcdir)/reload.h.
* 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. From-SVN: r82050
Diffstat (limited to 'gcc/ra.c')
-rw-r--r--gcc/ra.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ra.c b/gcc/ra.c
index 782d8a5..acc1be5 100644
--- a/gcc/ra.c
+++ b/gcc/ra.c
@@ -887,7 +887,8 @@ reg_alloc (void)
"after allocation/spilling, before reload", NULL);
/* Allocate the reg_equiv_memory_loc array for reload. */
- 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);
/* And possibly initialize it. */
allocate_initial_values (reg_equiv_memory_loc);
/* And one last regclass pass just before reload. */