diff options
author | Martin Liska <mliska@suse.cz> | 2015-11-09 16:47:01 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-11-09 15:47:01 +0000 |
commit | c34311917ff87b75ea589afff6868437fc53c001 (patch) | |
tree | ee35222d10eb23fd0c96ddb2b91ecec097a19a90 /gcc/ipa-prop.h | |
parent | af121e828eb03233d731b25b590d1f7c5dd2693d (diff) | |
download | gcc-c34311917ff87b75ea589afff6868437fc53c001.zip gcc-c34311917ff87b75ea589afff6868437fc53c001.tar.gz gcc-c34311917ff87b75ea589afff6868437fc53c001.tar.bz2 |
Fix memory leaks in IPA.
* ipa-inline-analysis.c (estimate_function_body_sizes): Call
body_info release function.
* ipa-prop.c (ipa_release_body_info): New function.
(ipa_analyze_node): Call the function.
(ipa_node_params::~ipa_node_params): Release known_csts.
* ipa-prop.h (ipa_release_body_info): Declare.
From-SVN: r230028
Diffstat (limited to 'gcc/ipa-prop.h')
-rw-r--r-- | gcc/ipa-prop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h index b69ee8a..2fe824d 100644 --- a/gcc/ipa-prop.h +++ b/gcc/ipa-prop.h @@ -775,7 +775,7 @@ bool ipa_modify_expr (tree *, bool, ipa_parm_adjustment_vec); ipa_parm_adjustment *ipa_get_adjustment_candidate (tree **, bool *, ipa_parm_adjustment_vec, bool); - +void ipa_release_body_info (struct ipa_func_body_info *); /* From tree-sra.c: */ tree build_ref_for_offset (location_t, tree, HOST_WIDE_INT, bool, tree, |