Commit 64384568 by Jeff Sturm Committed by Jeff Sturm

cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.

* cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
(cgraph_optimize_function): Set current_function_decl to the
fndecl we're integrating from.

From-SVN: r71002
parent 3660e02f
2003-09-02 Jeff Sturm <jsturm@one-point.com>
* cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
(cgraph_optimize_function): Set current_function_decl to the
fndecl we're integrating from.
2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* builtins.def: Break out _Complex math functions into their * builtins.def: Break out _Complex math functions into their
......
...@@ -122,7 +122,8 @@ record_call_1 (tree *tp, int *walk_subtrees, void *data) ...@@ -122,7 +122,8 @@ record_call_1 (tree *tp, int *walk_subtrees, void *data)
taken by something that is not a function call. So only taken by something that is not a function call. So only
walk the function parameter list, skip the other subtrees. */ walk the function parameter list, skip the other subtrees. */
walk_tree (&TREE_OPERAND (*tp, 1), record_call_1, data, NULL); walk_tree_without_duplicates (&TREE_OPERAND (*tp, 1),
record_call_1, data);
*walk_subtrees = 0; *walk_subtrees = 0;
} }
} }
...@@ -292,7 +293,7 @@ cgraph_optimize_function (struct cgraph_node *node) ...@@ -292,7 +293,7 @@ cgraph_optimize_function (struct cgraph_node *node)
timevar_push (TV_INTEGRATION); timevar_push (TV_INTEGRATION);
/* optimize_inline_calls avoids inlining of current_function_decl. */ /* optimize_inline_calls avoids inlining of current_function_decl. */
current_function_decl = 0; current_function_decl = decl;
if (flag_inline_trees) if (flag_inline_trees)
optimize_inline_calls (decl); optimize_inline_calls (decl);
if (node->nested) if (node->nested)
......
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