This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Symbol table 13/many: reachability code rewrite


On Wed, Apr 25, 2012 at 5:04 PM, Jan Hubicka <hubicka@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]