This is the mail archive of the gcc-patches@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]

Re: Patch to allow targets to prevent inlining


Hi Jeff,

: I'd prefer to keep the message strictly in integrate.c -- mostly to avoid
: having to expose the tm files to i18n issues like the "N_" stuff.
: 
: So I propose the macro only return zero or nonzero.  If it returns zero
: then function_cannot_inline_p returns
: 
: ie
: 
: #ifndef FUNCTION_ATTRIBUTE_INLINABLE_P
: #define FUNCTION_ATTRIBUTE_INLINABLE_P(FNDECL) 0
: #endif
: 
:   
:   if (DECL_MACHINE_ATTRIBUTES (fndecl)
:       && ! FUNCTION_ATTRIBUTE_INLINABLE_P (fndecl))
:     return N_("function with target specific attribute(s) cannot be inlined");
: 
: With appropriate updates to the documentation in tm.texi.

This is fine by me.  If no one has any objections I will submit a
revised patch next week.

Cheers
	Nick


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