This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Patch to allow targets to prevent inlining
- To: Nick Clifton <nickc at cygnus dot com>
- Subject: Patch to allow targets to prevent inlining
- From: Doug Evans <dje at transmeta dot com>
- Date: Mon, 14 Feb 2000 15:50:36 -0800 (PST)
- Cc: binutils at sourceware dot cygnus dot com
- References: <200002142333.PAA02776@elmo.cygnus.com>
Nick Clifton writes:
> Hi Guys,
>
> The patch below creates a new target macro which will allows
> individual backends to prevent inlining of particular functions.
>
> This ability is useful for the ARM an MCore ports which support
> naked functions (ie functions whoes prologues and epilogues are
> provided by the programmer, not the compiler). Such functions
> should not be inlined but currently there is no way to prevent
> this.
>
> Is it OK to apply this patch ?
You're working too hard Nick. This goes to gcc-patches (or whatever).
But, while we're talkin' :-),
How about making `naked' a standard attribute?
Then you could do away with this because you could have gcc
proper not allow inlining of naked fns.