mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
2b64895754
commit
07a1f7953e
|
|
@ -1,5 +1,8 @@
|
||||||
2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
|
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.
|
* bb-reoder.c (connect_traces): Free cold_traces at the end.
|
||||||
|
|
||||||
2004-05-13 Jeff Law <law@redhat.com>
|
2004-05-13 Jeff Law <law@redhat.com>
|
||||||
|
|
|
||||||
|
|
@ -767,6 +767,9 @@ shorten_branches (rtx first ATTRIBUTE_UNUSED)
|
||||||
/* Compute maximum UID and allocate label_align / uid_shuid. */
|
/* Compute maximum UID and allocate label_align / uid_shuid. */
|
||||||
max_uid = get_max_uid ();
|
max_uid = get_max_uid ();
|
||||||
|
|
||||||
|
/* Free uid_shuid before reallocating it. */
|
||||||
|
free (uid_shuid);
|
||||||
|
|
||||||
uid_shuid = xmalloc (max_uid * sizeof *uid_shuid);
|
uid_shuid = xmalloc (max_uid * sizeof *uid_shuid);
|
||||||
|
|
||||||
if (max_labelno != max_label_num ())
|
if (max_labelno != max_label_num ())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue