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?
No, I have just iteration API, not API to check how many refs are there
and I want to see if there are any...

Honza


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