+2004-05-25 Devang Patel <dpatel@apple.com>
+
+ * alias.c (init_alias_analysis): Use ggc_calloc instead of
+ xrealloc.
+ (end_alias_analysis): Use ggc_free instead fo free.
+
2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
PR target/15546
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;
}
reg_known_equiv_p = 0;
if (alias_invariant)
{
- free (alias_invariant);
+ ggc_free (alias_invariant);
alias_invariant = 0;
alias_invariant_size = 0;
}