This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch i386]: RFC enable inlining for function with machine-attributes
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Jun 2013 19:36:40 +0200
- Subject: Re: [patch i386]: RFC enable inlining for function with machine-attributes
- References: <CAEwic4Z-3AF+mmkC0MVMGRnQGYpATD=zLwHKO+i2GCo_u5umfA at mail dot gmail dot com> <51BF3717 dot 4050902 at redhat dot com>
2013/6/17 Richard Henderson <rth@redhat.com>:
> On 06/16/2013 11:55 PM, Kai Tietz wrote:
>> +static bool
>> +ix86_function_attribute_inlinable_p (const_tree fndecl ATTRIBUTE_UNUSED)
>> +{
>> + return true;
>> +}
>
> This is hook_bool_const_tree_true.
Right, we could define macro to this ...
> I have an idea that perhaps the default ought to be true, and that the few
> targets (like mep) that have an interrupt attribute, etc ought to be the ones
> to actually implement this hook.
Yes, that was actual the cause why I did a RFC on that patch. I was
concerned to break some targets by changing the default. I admit that
changing default would be the preferred solution for me, too.
>
> r~
Kai