From 39adabaf32813faa9cfbfbd6cfe306200404ee68 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 9 Sep 2003 20:06:32 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/c-decl.c | 2 +- gcc/cgraph.h | 2 +- gcc/cgraphunit.c | 2 +- gcc/cp/ChangeLog | 3 +++ gcc/cp/semantics.c | 2 +- gcc/java/ChangeLog | 5 +++++ gcc/java/parse.y | 2 +- 8 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 358ee4eb324..2b099c10086 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Richard Henderson + + * 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 diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 6afcd7afc94..b72f257b4c3 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6143,7 +6143,7 @@ finish_function () /* ??? Objc emits functions after finalizing the compilation unit. This should be cleaned up later and this conditional removed. */ if (!cgraph_global_info_ready) - cgraph_finalize_function (fndecl, DECL_SAVED_TREE (fndecl)); + cgraph_finalize_function (fndecl); else c_expand_body (fndecl); current_function_decl = NULL; diff --git a/gcc/cgraph.h b/gcc/cgraph.h index aaa09a201e8..2b30f93499f 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -169,7 +169,7 @@ void cgraph_varpool_finalize_decl (tree); bool cgraph_varpool_assemble_pending_decls (void); /* In cgraphunit.c */ -void cgraph_finalize_function (tree, tree); +void cgraph_finalize_function (tree); void cgraph_finalize_compilation_unit (void); void cgraph_create_edges (tree, tree); void cgraph_optimize (void); diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 10bf8377ede..02edb697d10 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -146,7 +146,7 @@ cgraph_assemble_pending_functions (void) available - create cgraph edges for function calls via BODY. */ void -cgraph_finalize_function (tree decl, tree body ATTRIBUTE_UNUSED) +cgraph_finalize_function (tree decl) { struct cgraph_node *node = cgraph_node (decl); diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1698444fd2d..b36f7aa2dd2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2003-09-09 Richard Henderson + * semantics.c (expand_or_defer_fn): Update call to + cgraph_finalize_function. + * semantics.c (expand_or_defer_fn): Use cgraph_finalize_function always. diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index b5d76cea29a..50923abb8e7 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2940,7 +2940,7 @@ expand_or_defer_fn (tree fn) import_export_decl (fn); /* 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 diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 3b5253696af..68841af41b1 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2003-09-09 Richard Henderson + + * parse.y (source_end_java_method): Update call to + cgraph_finalize_function. + 2003-09-03 Jeff Sturm * decl.c (java_expand_body): New function. diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 8684537268c..2a6abf56c18 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -7474,7 +7474,7 @@ source_end_java_method (void) /* In unit-at-a-time mode, don't expand the method yet. */ 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; java_parser_context_restore_global (); return; -- 2.30.2