From f7acf1c26d083e143b4c90eb69b8fb9a5d0314ab Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 16 Sep 2005 07:54:03 +0000 Subject: [PATCH] ipa-pure-const.c (static_execute): Free auxiliar information. 2005-09-16 Richard Guenther * ipa-pure-const.c (static_execute): Free auxiliar information. * ipa-type-escape.c (discover_unique_type): Free temporary key. * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap. From-SVN: r104341 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-pure-const.c | 3 +++ gcc/ipa-type-escape.c | 1 + gcc/tree-vrp.c | 2 ++ 4 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a64a732e1a8..820a062acfd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-09-16 Richard Guenther + + * ipa-pure-const.c (static_execute): Free auxiliar information. + * ipa-type-escape.c (discover_unique_type): Free temporary key. + * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap. + 2005-09-15 DJ Delorie * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo. diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index eb7273c5992..23a76857085 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -695,6 +695,9 @@ static_execute (void) /* Get rid of the aux information. */ if (node->aux) { + w_info = node->aux; + if (w_info->aux) + free (w_info->aux); free (node->aux); node->aux = NULL; } diff --git a/gcc/ipa-type-escape.c b/gcc/ipa-type-escape.c index e369d313dac..38cc23b2c58 100644 --- a/gcc/ipa-type-escape.c +++ b/gcc/ipa-type-escape.c @@ -250,6 +250,7 @@ discover_unique_type (tree type) } i++; } + free (brand); } /* Return true if TYPE is one of the type classes that we are willing diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index e802b2db802..4aec9fcc4dd 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -2784,6 +2784,8 @@ remove_range_assertions (void) else bsi_next (&si); } + + sbitmap_free (blocks_visited); }