diff options
author | Jan Hubicka <jh@suse.cz> | 2011-06-10 12:15:30 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-06-10 10:15:30 +0000 |
commit | fede8efad0bfa82997fd1ff49f84eb493231ca23 (patch) | |
tree | 48d43b22dfa25b1fd6a1b3335c96ecedb737ae09 /gcc/ipa-utils.c | |
parent | 0127c76f613c84e31efdc6b1c6d1634718b8f691 (diff) | |
download | gcc-fede8efad0bfa82997fd1ff49f84eb493231ca23.tar.gz |
ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
* ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
* ipa-pure-const.c (analyze_function): Aliases don't need analysis.
(self_recursive_p): Use cgraph_function_node.
(propagate_pure_const): Likewise.
(propagate_nothrow): Likewise.
* ipa-reference.c (ipa_reference_get_not_read_global): Use
cgraph_function_node.
(propagate_bits): Likewise.
(propagate): Likewise.
From-SVN: r174895
Diffstat (limited to 'gcc/ipa-utils.c')
-rw-r--r-- | gcc/ipa-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ipa-utils.c b/gcc/ipa-utils.c index 91fe839577d..ae207369d18 100644 --- a/gcc/ipa-utils.c +++ b/gcc/ipa-utils.c @@ -101,10 +101,10 @@ searchc (struct searchc_env* env, struct cgraph_node *v, for (edge = v->callees; edge; edge = edge->next_callee) { struct ipa_dfs_info * w_info; - struct cgraph_node *w = edge->callee; - enum availability avail = cgraph_function_body_availability (w); + enum availability avail; + struct cgraph_node *w = cgraph_function_or_thunk_node (edge->callee, &avail); - if (ignore_edge && ignore_edge (edge)) + if (!w || (ignore_edge && ignore_edge (edge))) continue; if (w->aux |