summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authoraldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-19 08:59:19 +0000
committeraldot <aldot@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-19 08:59:19 +0000
commitc04e38940f04736e37e1c49414b4b08c441162c4 (patch)
treebf30153eb865eaff6e234c12ee1610d56da25094 /gcc/cgraphunit.c
parent4e86c60dcaa09d938e02722213289f4634588df9 (diff)
downloadgcc-c04e38940f04736e37e1c49414b4b08c441162c4.tar.gz
2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
* cgraphunit.c (cgraph_finalize_function): Remove redundant setting of node->decl. (cgraph_expand_function): Use local copy of decl. (cgraph_expand_all_functions): Remove redundant initialization of order_pos. (cgraph_optimize): Reword internal_error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index a5b116b4de8..6b00bd59c41 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -603,7 +603,6 @@ cgraph_finalize_function (tree decl, bool nested)
node->pid = cgraph_max_pid ++;
notice_global_symbol (decl);
- node->decl = decl;
node->local.finalized = true;
node->lowered = DECL_STRUCT_FUNCTION (decl)->cfg != NULL;
record_cdtor_fn (node->decl);
@@ -1161,10 +1160,10 @@ cgraph_expand_function (struct cgraph_node *node)
/* Make sure that BE didn't give up on compiling. */
/* ??? Can happen with nested function of extern inline. */
- gcc_assert (TREE_ASM_WRITTEN (node->decl));
+ gcc_assert (TREE_ASM_WRITTEN (decl));
current_function_decl = NULL;
- if (!cgraph_preserve_function_body_p (node->decl))
+ if (!cgraph_preserve_function_body_p (decl))
{
cgraph_release_function_body (node);
/* Eliminate all call edges. This is important so the call_expr no longer
@@ -1201,7 +1200,7 @@ cgraph_expand_all_functions (void)
{
struct cgraph_node *node;
struct cgraph_node **order = XCNEWVEC (struct cgraph_node *, cgraph_n_nodes);
- int order_pos = 0, new_order_pos = 0;
+ int order_pos, new_order_pos = 0;
int i;
order_pos = cgraph_postorder (order);
@@ -1389,7 +1388,7 @@ cgraph_optimize (void)
if (!quiet_flag)
fprintf (stderr, "Performing interprocedural optimizations\n");
cgraph_state = CGRAPH_STATE_IPA;
-
+
/* Don't run the IPA passes if there was any error or sorry messages. */
if (errorcount == 0 && sorrycount == 0)
ipa_passes ();
@@ -1460,7 +1459,7 @@ cgraph_optimize (void)
dump_cgraph_node (stderr, node);
}
if (error_found)
- internal_error ("nodes with no released memory found");
+ internal_error ("nodes with unreleased memory found");
}
#endif
}