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/function.h | |
parent | b1d0a338a77399b28670e657bfb1085a2b879384 (diff) | |
download | gcc-936fc9bad2df490917cbb01f27c9eede43f9e153.tar.gz |
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/function.h')
-rw-r--r-- | gcc/function.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/function.h b/gcc/function.h index e6214b3ae6f..16f2324abff 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -495,9 +495,6 @@ struct function GTY(()) /* Points to the FUNCTION_DECL of this function. */ tree decl; - /* Function containing this function, if any. */ - struct function *outer; - /* A PARM_DECL that should contain the static chain for this function. It will be initialized at the beginning of the function. */ tree static_chain_decl; @@ -610,9 +607,6 @@ extern GTY(()) struct function *cfun; push_cfun or set_cfun. */ #define cfun (cfun + 0) -/* Pointer to chain of `struct function' for containing functions. */ -extern GTY(()) struct function *outer_function_chain; - /* Nonzero if we've already converted virtual regs to hard regs. */ extern int virtuals_instantiated; @@ -633,10 +627,6 @@ extern void instantiate_decl_rtl (rtx x); #define n_bbs_in_dom_tree (cfun->cfg->x_n_bbs_in_dom_tree) #define VALUE_HISTOGRAMS(fun) (fun)->value_histograms -/* Given a function decl for a containing function, - return the `struct function' for it. */ -struct function *find_function_data (tree); - /* Identify BLOCKs referenced by more than one NOTE_INSN_BLOCK_{BEG,END}, and create duplicate blocks. */ extern void reorder_blocks (void); |