Re: Cgraph alias reorg 2/14 (introduction of alias walkers)

2011-06-10 Thread Jan Hubicka
> Hi, > > On Fri, 10 Jun 2011, Jan Hubicka wrote: > > > +static inline struct cgraph_node * > > +cgraph_function_or_thunk_node (struct cgraph_node *node, enum availability > > *availability) > > +{ > > + if (availability) > > +*availability = cgraph_function_body_availability (node); > > +

Re: Cgraph alias reorg 2/14 (introduction of alias walkers)

2011-06-10 Thread Michael Matz
Hi, On Fri, 10 Jun 2011, Jan Hubicka wrote: > +static inline struct cgraph_node * > +cgraph_function_or_thunk_node (struct cgraph_node *node, enum availability > *availability) > +{ > + if (availability) > +*availability = cgraph_function_body_availability (node); > + return node; > + ret

Cgraph alias reorg 2/14 (introduction of alias walkers)

2011-06-09 Thread Jan Hubicka
Hi, this patch adds the functions to walk aliases and updates cgraph.c infrastructure to use it. It also fixes the existing missed optimization where ipa-pure-const and friends did not update decls of the same body aliases. Bootstrapped/regtested x86_64-linux, comitted. Honza * cgraph.