diff options
author | Jan Hubicka <jh@suse.cz> | 2008-09-11 14:41:36 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-09-11 12:41:36 +0000 |
commit | 936fc9bad2df490917cbb01f27c9eede43f9e153 (patch) | |
tree | fb9ef6a13039426828243cade216220f16250a8c /gcc/stmt.c | |
parent | b1d0a338a77399b28670e657bfb1085a2b879384 (diff) | |
download | gcc-936fc9bad2df490917cbb01f27c9eede43f9e153.zip gcc-936fc9bad2df490917cbb01f27c9eede43f9e153.tar.gz gcc-936fc9bad2df490917cbb01f27c9eede43f9e153.tar.bz2 |
cgraph.c (cgraph_release_function_body): Plug memory leak on ipa_transforms_to_apply and CFG...
* cgraph.c (cgraph_release_function_body): Plug memory leak on
ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
so we are sure we do not dangle it forever.
* function.c (outer_function_chain, find_function_data): Remove.
(function_context_stack): New.
(push_function_context, pop_function_context): Update.
* function.h (struct function): Remove pointer outer.
(outer_function_chain, find_function_data): Remove.
* stmt.c (force_label_rtx): Remove dead call of find_function_data.
From-SVN: r140285
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -151,15 +151,9 @@ force_label_rtx (tree label) { rtx ref = label_rtx (label); tree function = decl_function_context (label); - struct function *p; gcc_assert (function); - if (function != current_function_decl) - p = find_function_data (function); - else - p = cfun; - forced_labels = gen_rtx_EXPR_LIST (VOIDmode, ref, forced_labels); return ref; } |