diff options
-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 ()) |