summaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2004-05-25 11:10:41 -0700
committerDevang Patel <dpatel@gcc.gnu.org>2004-05-25 11:10:41 -0700
commitf411a73a8caf915d2685c5065de6c918de76daad (patch)
treecbd99db8924136949d0b570c2ea670eb823c12c4 /gcc/alias.c
parent9874adaf91fee8a95b7a1ef0ad5014bf55e016ef (diff)
downloadgcc-f411a73a8caf915d2685c5065de6c918de76daad.tar.gz
alias.c (init_alias_analysis): Use ggc_calloc instead of xrealloc.
* alias.c (init_alias_analysis): Use ggc_calloc instead of xrealloc. (end_alias_analysis): Use ggc_free instead fo free. From-SVN: r82251
Diffstat (limited to 'gcc/alias.c')
-rw-r--r--gcc/alias.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/alias.c b/gcc/alias.c
index 46d1dca0168..18566c564c5 100644
--- a/gcc/alias.c
+++ b/gcc/alias.c
@@ -2827,10 +2827,7 @@ init_alias_analysis (void)
reg_seen = xmalloc (maxreg);
if (! reload_completed && flag_old_unroll_loops)
{
- /* ??? Why are we realloc'ing if we're just going to zero it? */
- alias_invariant = xrealloc (alias_invariant,
- maxreg * sizeof (rtx));
- memset (alias_invariant, 0, maxreg * sizeof (rtx));
+ alias_invariant = ggc_calloc (maxreg, sizeof (rtx));
alias_invariant_size = maxreg;
}
@@ -3031,7 +3028,7 @@ end_alias_analysis (void)
reg_known_equiv_p = 0;
if (alias_invariant)
{
- free (alias_invariant);
+ ggc_free (alias_invariant);
alias_invariant = 0;
alias_invariant_size = 0;
}