Patch to allow targets to prevent inlining

Nick Clifton nickc@cygnus.com
Fri Apr 21 16:21:00 GMT 2000


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



More information about the Gcc-patches mailing list