From fede8efad0bfa82997fd1ff49f84eb493231ca23 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 10 Jun 2011 12:15:30 +0200 Subject: 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 --- gcc/ipa-utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/ipa-utils.c') 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 -- cgit v1.2.1