Commit 0f0377f6 by Jan Hubicka Committed by Jan Hubicka

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
parent 8f28be81
2004-10-01 Jan Hubicka <jh@suse.cz>
* 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.
2004-10-01 Kazu Hirata <kazu@cs.umass.edu> 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
* tree-cfg.c (cleanup_tree_cfg): Pull a call to * tree-cfg.c (cleanup_tree_cfg): Pull a call to
......
2004-10-01 Jan Hubicka <jh@suse.cz>
* misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
2004-09-23 Robert Dewar <dewar@gnat.com> 2004-09-23 Robert Dewar <dewar@gnat.com>
PR ada/17540 PR ada/17540
......
...@@ -649,7 +649,7 @@ gnat_expand_body (tree gnu_decl) ...@@ -649,7 +649,7 @@ gnat_expand_body (tree gnu_decl)
if (!DECL_INITIAL (gnu_decl) || DECL_INITIAL (gnu_decl) == error_mark_node) if (!DECL_INITIAL (gnu_decl) || DECL_INITIAL (gnu_decl) == error_mark_node)
return; return;
tree_rest_of_compilation (gnu_decl, false); tree_rest_of_compilation (gnu_decl);
} }
/* Adjusts the RLI used to layout a record after all the fields have been /* Adjusts the RLI used to layout a record after all the fields have been
......
...@@ -6324,7 +6324,7 @@ c_expand_body (tree fndecl) ...@@ -6324,7 +6324,7 @@ c_expand_body (tree fndecl)
|| DECL_INITIAL (fndecl) == error_mark_node) || DECL_INITIAL (fndecl) == error_mark_node)
return; return;
tree_rest_of_compilation (fndecl, false); tree_rest_of_compilation (fndecl);
if (DECL_STATIC_CONSTRUCTOR (fndecl) if (DECL_STATIC_CONSTRUCTOR (fndecl)
&& targetm.have_ctors_dtors) && targetm.have_ctors_dtors)
......
...@@ -2923,7 +2923,7 @@ cgraph_build_static_cdtor (char which, tree body, int priority) ...@@ -2923,7 +2923,7 @@ cgraph_build_static_cdtor (char which, tree body, int priority)
/* ??? We will get called LATE in the compilation process. */ /* ??? We will get called LATE in the compilation process. */
if (cgraph_global_info_ready) if (cgraph_global_info_ready)
tree_rest_of_compilation (decl, false); tree_rest_of_compilation (decl);
else else
cgraph_finalize_function (decl, 0); cgraph_finalize_function (decl, 0);
......
2004-10-01 Jan Hubicka <jh@suse.cz>
* semantics.c (expand_body): Update call of tree_rest_of_compilation.
2004-09-30 Nathan Sidwell <nathan@codesourcery.com> 2004-09-30 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (struct lang_decl): Shrink by reordering fields and * cp-tree.h (struct lang_decl): Shrink by reordering fields and
......
...@@ -2892,7 +2892,7 @@ expand_body (tree fn) ...@@ -2892,7 +2892,7 @@ expand_body (tree fn)
generating trees for a function. */ generating trees for a function. */
gcc_assert (function_depth == 0); gcc_assert (function_depth == 0);
tree_rest_of_compilation (fn, 0); tree_rest_of_compilation (fn);
current_function_decl = saved_function; current_function_decl = saved_function;
......
2004-10-01 Jan Hubicka <jh@suse.cz>
* f95-lang.c (gfc_expand_function): Update call of
tree_rest_of_compilation.
* trans-decl.c (gfc_generate_constructors): Likewise.
2004-09-26 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> 2004-09-26 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* trans-intrinsic.c: Comment fixes. * trans-intrinsic.c: Comment fixes.
......
...@@ -196,7 +196,7 @@ tree *ridpointers = NULL; ...@@ -196,7 +196,7 @@ tree *ridpointers = NULL;
static void static void
gfc_expand_function (tree fndecl) gfc_expand_function (tree fndecl)
{ {
tree_rest_of_compilation (fndecl, 0); tree_rest_of_compilation (fndecl);
} }
......
...@@ -2353,7 +2353,7 @@ gfc_generate_constructors (void) ...@@ -2353,7 +2353,7 @@ gfc_generate_constructors (void)
free_after_parsing (cfun); free_after_parsing (cfun);
free_after_compilation (cfun); free_after_compilation (cfun);
tree_rest_of_compilation (fndecl, 0); tree_rest_of_compilation (fndecl);
current_function_decl = NULL_TREE; current_function_decl = NULL_TREE;
#endif #endif
......
2004-10-01 Jan Hubicka <jh@suse.cz>
* java.c (java_expand_body): Update call of tree_rest_of_compilation.
2004-10-01 Kazu Hirata <kazu@cs.umass.edu> 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
* lex.c: Fix a comment typo. * lex.c: Fix a comment typo.
......
...@@ -1970,7 +1970,7 @@ finish_method (tree fndecl) ...@@ -1970,7 +1970,7 @@ finish_method (tree fndecl)
void void
java_expand_body (tree fndecl) java_expand_body (tree fndecl)
{ {
tree_rest_of_compilation (fndecl, 0); tree_rest_of_compilation (fndecl);
} }
/* We pessimistically marked all methods and fields external until we /* We pessimistically marked all methods and fields external until we
......
...@@ -76,7 +76,7 @@ extern void inform (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2); ...@@ -76,7 +76,7 @@ extern void inform (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void rest_of_decl_compilation (tree, int, int); extern void rest_of_decl_compilation (tree, int, int);
extern void rest_of_type_compilation (tree, int); extern void rest_of_type_compilation (tree, int);
extern void rest_of_compilation (void); extern void rest_of_compilation (void);
extern void tree_rest_of_compilation (tree, bool); extern void tree_rest_of_compilation (tree);
extern void init_tree_optimization_passes (void); extern void init_tree_optimization_passes (void);
extern void finish_optimization_passes (void); extern void finish_optimization_passes (void);
extern bool enable_rtl_dump_file (int); extern bool enable_rtl_dump_file (int);
......
...@@ -565,7 +565,7 @@ update_inlined_to_pointers (struct cgraph_node *node, ...@@ -565,7 +565,7 @@ update_inlined_to_pointers (struct cgraph_node *node,
compilation for FNDECL. */ compilation for FNDECL. */
void void
tree_rest_of_compilation (tree fndecl, bool nested_p) tree_rest_of_compilation (tree fndecl)
{ {
location_t saved_loc; location_t saved_loc;
struct cgraph_node *saved_node = NULL, *node; struct cgraph_node *saved_node = NULL, *node;
...@@ -629,11 +629,6 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) ...@@ -629,11 +629,6 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
if (!vars_to_rename) if (!vars_to_rename)
vars_to_rename = BITMAP_XMALLOC (); 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. */ /* Perform all tree transforms and optimizations. */
execute_pass_list (all_passes); execute_pass_list (all_passes);
...@@ -689,7 +684,7 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) ...@@ -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; DECL_SAVED_TREE (fndecl) = NULL;
if (DECL_STRUCT_FUNCTION (fndecl) == 0 if (DECL_STRUCT_FUNCTION (fndecl) == 0
...@@ -708,9 +703,5 @@ tree_rest_of_compilation (tree fndecl, bool nested_p) ...@@ -708,9 +703,5 @@ tree_rest_of_compilation (tree fndecl, bool nested_p)
input_location = saved_loc; input_location = saved_loc;
ggc_collect (); ggc_collect ();
/* Undo the GC context switch. */
if (nested_p)
ggc_pop_context ();
timevar_pop (TV_EXPAND); timevar_pop (TV_EXPAND);
} }
2004-10-01 Jan Hubicka <jh@suse.cz>
* treetree.c (treeland_expand_function): Update call of
tree_rest_of_compilation.
2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com> 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
Zack Weinberg <zack@codesourcery.com> Zack Weinberg <zack@codesourcery.com>
......
...@@ -1278,7 +1278,7 @@ static void ...@@ -1278,7 +1278,7 @@ static void
treelang_expand_function (tree fndecl) treelang_expand_function (tree fndecl)
{ {
/* We have nothing special to do while expanding functions for treelang. */ /* We have nothing special to do while expanding functions for treelang. */
tree_rest_of_compilation (fndecl, 0); tree_rest_of_compilation (fndecl);
} }
#include "debug.h" /* for debug_hooks, needed by gt-treelang-treetree.h */ #include "debug.h" /* for debug_hooks, needed by gt-treelang-treetree.h */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment