function.c: Remove all_functions.
authorZack Weinberg <zack@codesourcery.com>
Fri, 31 Aug 2001 22:22:02 +0000 (22:22 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 31 Aug 2001 22:22:02 +0000 (22:22 +0000)
commiteb3ae3e105091e44f38d0b33dae7f39f1aa555a6
treeb77c444c6e27770af77c66f1472ba013d89ad831
parent7a95ae6b51b590a8b8b9ee06768204c5d6a4a90f
function.c: Remove all_functions.

* function.c: Remove all_functions.  Make outer_function_chain
static.
(init_function_start): Don't add new function structure to
all_functions.
(find_function_data, push_function_context_to,
pop_function_context_from, put_var_into_stack,
trampoline_address): Update for changed structure element names.
(push_function_context_to): Disentangle.
(free_after_compilation): Also free F.
(expand_dummy_function_end): Don't free cfun here.
(put_var_into_stack): Comment why we can't use find_function_data here.
(fix_lexical_addr, trampoline_address, ): Use find_function_data.
(mark_function_chain): Split into maybe_mark_struct_function and
ggc_mark_struct_function.  Export the latter.
(init_function_once): Mark from cfun and outer_function_chain;
not all_functions.

* function.h (struct function): Kill next_global.  Rename next
to outer.  All users updated to match.
(all_functions, outer_function_chain): Don't declare.

* ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
* integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
don't touch f->inlinable, after calling rest_of_compilation.

* tree.h: Forward-declare struct function.  Prototype
ggc_mark_struct_function.

From-SVN: r45336
gcc/ChangeLog
gcc/function.c
gcc/function.h
gcc/ggc-common.c
gcc/integrate.c
gcc/tree.h