On Wed, Apr 25, 2012 at 5:04 PM, Jan Hubicka <hubi...@ucw.cz> wrote: > + /* Return true when there are references to NODE. */ > + > + static bool > + referred_to_p (symtab_node node) > + { > + int i; > + struct ipa_ref *ref; > + > + for (i = 0; ipa_ref_list_referring_iterate (&node->symbol.ref_list, i, > ref); > + i++) > + return true;
This looks odd. Don't you want to do something with ref? > + if (symtab_function_p (node) && cgraph (node)->callers) > + return true; > + return false; > + } Ciao! Steven