This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to allow targets to prevent inlining
- To: law at cygnus dot com
- Subject: Re: Patch to allow targets to prevent inlining
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Fri, 21 Apr 2000 16:21:17 -0700
- CC: rearnsha at arm dot com, gcc-patches at gcc dot gnu dot org
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