> > I have bootstrapped and tested the patch on x86_64-linux without
> > problems. OK for trunk?
>
> An alias shouldn't have a body, so why not assert !node->same_body_alias
> instead.?
Yep, patch is OK with that change.
Honza
Hi,
On Thu, Apr 28, 2011 at 03:39:11PM +0200, Richard Guenther wrote:
> On Thu, Apr 28, 2011 at 3:31 PM, Martin Jambor wrote:
> > Hi,
> >
> > when I was removing the cgraph_node function I noticed that
> > cgraph_preserve_function_body_p takes a tree decl parameter which it
> > immediately conver
On Thu, Apr 28, 2011 at 3:31 PM, Martin Jambor wrote:
> Hi,
>
> when I was removing the cgraph_node function I noticed that
> cgraph_preserve_function_body_p takes a tree decl parameter which it
> immediately converts to a call graph node while its two callers get
> the decl from a node they alrea
Hi,
when I was removing the cgraph_node function I noticed that
cgraph_preserve_function_body_p takes a tree decl parameter which it
immediately converts to a call graph node while its two callers get
the decl from a node they already have. This seems wasteful and so
the patch below changes the p