This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trans-mem] do not inline wrapper functions
On Thu, Sep 10, 2009 at 08:18:28AM -0700, Richard Henderson wrote:
> On 09/10/2009 08:09 AM, Aldy Hernandez wrote:
>> I am a little concerned that every time we create a function call we
>> have to search in the TM replacements hash, but I suppose it's only for
>> the TM case and doesn't affect anyone else.
>
> You don't have to. Set the bit when we parse the attribute.
The CALL_CANNOT_INLINE_P bit should be set on the CALL_EXPR, not the
FUNCTION_DECL, which is what we have when we parse the attribute.
I'll try the DECL_UNINLINABLE thing Matz suggested.