Commit 39adabaf by Richard Henderson Committed by Richard Henderson

cgraphunit.c (cgraph_finalize_function): Remove unused argument.

        * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
        * cgraph.h (cgraph_finalize_function): Update.
        * c-decl.c (finish_function): Update.
cp/
        * semantics.c (expand_or_defer_fn): Update call to
        cgraph_finalize_function.
java/
        * parse.y (source_end_java_method): Update call to
        cgraph_finalize_function.

From-SVN: r71263
parent 288a242b
2003-09-09 Richard Henderson <rth@redhat.com>
* cgraphunit.c (cgraph_finalize_function): Remove unused argument.
* cgraph.h (cgraph_finalize_function): Update.
* c-decl.c (finish_function): Update.
2003-09-09 Devang Patel <dpatel@apple.com> 2003-09-09 Devang Patel <dpatel@apple.com>
......
...@@ -6143,7 +6143,7 @@ finish_function () ...@@ -6143,7 +6143,7 @@ finish_function ()
/* ??? Objc emits functions after finalizing the compilation unit. /* ??? Objc emits functions after finalizing the compilation unit.
This should be cleaned up later and this conditional removed. */ This should be cleaned up later and this conditional removed. */
if (!cgraph_global_info_ready) if (!cgraph_global_info_ready)
cgraph_finalize_function (fndecl, DECL_SAVED_TREE (fndecl)); cgraph_finalize_function (fndecl);
else else
c_expand_body (fndecl); c_expand_body (fndecl);
current_function_decl = NULL; current_function_decl = NULL;
......
...@@ -169,7 +169,7 @@ void cgraph_varpool_finalize_decl (tree); ...@@ -169,7 +169,7 @@ void cgraph_varpool_finalize_decl (tree);
bool cgraph_varpool_assemble_pending_decls (void); bool cgraph_varpool_assemble_pending_decls (void);
/* In cgraphunit.c */ /* In cgraphunit.c */
void cgraph_finalize_function (tree, tree); void cgraph_finalize_function (tree);
void cgraph_finalize_compilation_unit (void); void cgraph_finalize_compilation_unit (void);
void cgraph_create_edges (tree, tree); void cgraph_create_edges (tree, tree);
void cgraph_optimize (void); void cgraph_optimize (void);
......
...@@ -146,7 +146,7 @@ cgraph_assemble_pending_functions (void) ...@@ -146,7 +146,7 @@ cgraph_assemble_pending_functions (void)
available - create cgraph edges for function calls via BODY. */ available - create cgraph edges for function calls via BODY. */
void void
cgraph_finalize_function (tree decl, tree body ATTRIBUTE_UNUSED) cgraph_finalize_function (tree decl)
{ {
struct cgraph_node *node = cgraph_node (decl); struct cgraph_node *node = cgraph_node (decl);
......
2003-09-09 Richard Henderson <rth@redhat.com> 2003-09-09 Richard Henderson <rth@redhat.com>
* semantics.c (expand_or_defer_fn): Update call to
cgraph_finalize_function.
* semantics.c (expand_or_defer_fn): Use cgraph_finalize_function * semantics.c (expand_or_defer_fn): Use cgraph_finalize_function
always. always.
......
...@@ -2940,7 +2940,7 @@ expand_or_defer_fn (tree fn) ...@@ -2940,7 +2940,7 @@ expand_or_defer_fn (tree fn)
import_export_decl (fn); import_export_decl (fn);
/* Expand or defer, at the whim of the compilation unit manager. */ /* Expand or defer, at the whim of the compilation unit manager. */
cgraph_finalize_function (fn, DECL_SAVED_TREE (fn)); cgraph_finalize_function (fn);
} }
/* Helper function for walk_tree, used by finish_function to override all /* Helper function for walk_tree, used by finish_function to override all
......
2003-09-09 Richard Henderson <rth@redhat.com>
* parse.y (source_end_java_method): Update call to
cgraph_finalize_function.
2003-09-03 Jeff Sturm <jsturm@one-point.com> 2003-09-03 Jeff Sturm <jsturm@one-point.com>
* decl.c (java_expand_body): New function. * decl.c (java_expand_body): New function.
......
...@@ -7474,7 +7474,7 @@ source_end_java_method (void) ...@@ -7474,7 +7474,7 @@ source_end_java_method (void)
/* In unit-at-a-time mode, don't expand the method yet. */ /* In unit-at-a-time mode, don't expand the method yet. */
if (DECL_SAVED_TREE (fndecl) && flag_unit_at_a_time) if (DECL_SAVED_TREE (fndecl) && flag_unit_at_a_time)
{ {
cgraph_finalize_function (fndecl, DECL_SAVED_TREE (fndecl)); cgraph_finalize_function (fndecl);
current_function_decl = NULL_TREE; current_function_decl = NULL_TREE;
java_parser_context_restore_global (); java_parser_context_restore_global ();
return; return;
......
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