core changes for mep port
Ian Lance Taylor
iant@google.com
Fri Mar 16 00:39:00 GMT 2007
DJ Delorie <dj@redhat.com> writes:
> > > if (targetm.disallow_inlining_p (node->decl, decl))
> > > return false;
> > >
> > > if (targetm.disallow_call_p (current_function_decl, function))
> > > return error_mark_node;
> >
> > I don't see a real problem with this, but I would prefer to see
> > "allow_XX" rather than "disallow_XX". It's easier to understand code
> > which is expressed in the positive.
>
> Ok. Where is the best place to put these? Most of today's inline
> logic only looks at the callee, not both the caller and callee.
Do you mean where is the best place to call these functions? Look at
the calls to cgraph_mark_edge in ipa-inline.c--that has both caller
and callee--and look at inline_forbidden_p--there I assume that cfun
will hold the caller.
Ian
More information about the Gcc
mailing list