diff options
author | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-15 11:45:30 +0000 |
---|---|---|
committer | mueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-07-15 11:45:30 +0000 |
commit | 5a30047cc1166eb6ec0def314673f9535c5d44b7 (patch) | |
tree | ee710b19d6216c4dec1c96e78150fde55e460e43 /gcc/omega.c | |
parent | 4f24072606b69a8fbb28eb194bb7c79a5f3abb1c (diff) | |
download | gcc-5a30047cc1166eb6ec0def314673f9535c5d44b7.tar.gz |
2007-07-15 Dirk Mueller <dmueller@suse.de>
* omega.c (coalesce): Fix memory leak on early exit.
* matrix-reorg.c (check_allocation_function): Likewise.
* tree-vect-transform.c (vect_get_new_vect_var): free result
of concat().
* bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
pass pointer to edge vector
(partition_hot_cold_basic_blocks): Fix memory leak.
* collect2.c (prefix_from_string): Free temporary storage.
* reload1.c (fixup_abnormal_edges): Free sbitmap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126653 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/omega.c')
-rw-r--r-- | gcc/omega.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/omega.c b/gcc/omega.c index 900ca8594e3..ed6f536f39f 100644 --- a/gcc/omega.c +++ b/gcc/omega.c @@ -2454,7 +2454,7 @@ coalesce (omega_pb pb) { int e, e2; int colors = 0; - bool *is_dead = XNEWVEC (bool, OMEGA_MAX_GEQS); + bool *is_dead; int found_something = 0; for (e = 0; e < pb->num_geqs; e++) @@ -2464,6 +2464,8 @@ coalesce (omega_pb pb) if (colors < 2) return; + is_dead = XNEWVEC (bool, OMEGA_MAX_GEQS); + for (e = 0; e < pb->num_geqs; e++) is_dead[e] = false; |