This is the mail archive of the gcc@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: core changes for mep port


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


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