diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2004-05-13 21:52:34 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2004-05-13 14:52:34 -0700 |
commit | 07a1f7953e64b6b3c8edabbe412099968bce7ab5 (patch) | |
tree | d63a4bbe75c18a88ab5de68444497039df482336 | |
parent | 2b64895754cd707df368fd198c4275fa607e853b (diff) | |
download | gcc-07a1f7953e64b6b3c8edabbe412099968bce7ab5.zip gcc-07a1f7953e64b6b3c8edabbe412099968bce7ab5.tar.gz gcc-07a1f7953e64b6b3c8edabbe412099968bce7ab5.tar.bz2 |
final.c (shorten_branches): Free uid_shuid before reallocating it.
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
* final.c (shorten_branches): Free uid_shuid before
reallocating it.
From-SVN: r81807
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/final.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 63fbc58..9885c77 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu> + * final.c (shorten_branches): Free uid_shuid before + reallocating it. + * bb-reoder.c (connect_traces): Free cold_traces at the end. 2004-05-13 Jeff Law <law@redhat.com> diff --git a/gcc/final.c b/gcc/final.c index 96a7a5b..281b161 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -767,6 +767,9 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED) /* Compute maximum UID and allocate label_align / uid_shuid. */ max_uid = get_max_uid (); + /* Free uid_shuid before reallocating it. */ + free (uid_shuid); + uid_shuid = xmalloc (max_uid * sizeof *uid_shuid); if (max_labelno != max_label_num ()) |