aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-optimize.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-10-01 17:11:25 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2004-10-01 15:11:25 +0000
commit0f0377f6dde05e7bc08025824b24ce8917cbcee7 (patch)
treec9a038f7da5c95456d000d806d0b660f3ff619dd /gcc/tree-optimize.c
parent8f28be81e32a7117e0848bb8559e90376570e4d2 (diff)
downloadgcc-0f0377f6dde05e7bc08025824b24ce8917cbcee7.zip
gcc-0f0377f6dde05e7bc08025824b24ce8917cbcee7.tar.gz
gcc-0f0377f6dde05e7bc08025824b24ce8917cbcee7.tar.bz2
c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
* c-decl.c (c_expand_body): Update call tree_rest_of_compilation. * cgraphunit.c (cgraph_build_static_cdtor): Likewise. * toplev.h (tree_rest_of_compilation): Update prototype. * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument. * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation. * semantics.c (expand_body): Update call of tree_rest_of_compilation. * f95-lang.c (gfc_expand_function): Update call of tree_rest_of_compilation. * trans-decl.c (gfc_generate_constructors): Likewise. * java.c (java_expand_body): Update call of tree_rest_of_compilation. * treetree.c (treeland_expand_function): Update call of tree_rest_of_compilation. From-SVN: r88396
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r--gcc/tree-optimize.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c
index aa3df9e..1d145dc 100644
--- a/gcc/tree-optimize.c
+++ b/gcc/tree-optimize.c
@@ -565,7 +565,7 @@ update_inlined_to_pointers (struct cgraph_node *node,
compilation for FNDECL. */
void
-tree_rest_of_compilation (tree fndecl, bool nested_p)
+tree_rest_of_compilation (tree fndecl)
{
location_t saved_loc;
struct cgraph_node *saved_node = NULL, *node;
@@ -629,11 +629,6 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
if (!vars_to_rename)
vars_to_rename = BITMAP_XMALLOC ();
- /* If this is a nested function, protect the local variables in the stack
- above us from being collected while we're compiling this function. */
- if (nested_p)
- ggc_push_context ();
-
/* Perform all tree transforms and optimizations. */
execute_pass_list (all_passes);
@@ -689,7 +684,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
}
}
- if (!nested_p && !flag_inline_trees)
+ if (!flag_inline_trees)
{
DECL_SAVED_TREE (fndecl) = NULL;
if (DECL_STRUCT_FUNCTION (fndecl) == 0
@@ -708,9 +703,5 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
input_location = saved_loc;
ggc_collect ();
-
- /* Undo the GC context switch. */
- if (nested_p)
- ggc_pop_context ();
timevar_pop (TV_EXPAND);
}