From 07a1f7953e64b6b3c8edabbe412099968bce7ab5 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 May 2004 21:52:34 +0000 Subject: [PATCH] final.c (shorten_branches): Free uid_shuid before reallocating it. 2004-05-13 Andrew Pinski * final.c (shorten_branches): Free uid_shuid before reallocating it. From-SVN: r81807 --- gcc/ChangeLog | 3 +++ gcc/final.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 63fbc58cd972..9885c7746d79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2004-05-13 Andrew Pinski + * 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 diff --git a/gcc/final.c b/gcc/final.c index 96a7a5bfcdbc..281b161956f1 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 ()) -- 2.43.5