diff options
author | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-25 18:10:41 +0000 |
---|---|---|
committer | dpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-25 18:10:41 +0000 |
commit | 0fde16b438cf3176d4e8f7fe6208f1890ac2e96d (patch) | |
tree | cbd99db8924136949d0b570c2ea670eb823c12c4 | |
parent | 1833f70eec6a42025dc2fd6ab88c485158d231d4 (diff) | |
download | gcc-0fde16b438cf3176d4e8f7fe6208f1890ac2e96d.tar.gz |
* alias.c (init_alias_analysis): Use ggc_calloc instead of
xrealloc.
(end_alias_analysis): Use ggc_free instead fo free.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82251 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/alias.c | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5819e6c34c4..2de0da59277 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 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; } |