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: Nick Clifton <nickc at cygnus dot com>
- Subject: Re: Patch to allow targets to prevent inlining
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 29 Feb 2000 10:04:49 -0700
- cc: rearnsha at arm dot com, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <200002281824.KAA01951@elmo.cygnus.com>you write:
> : Sounds basically sensible, but I suspect we would still need an override.
>
> : What if a target tags every function with an attribute by default (I'm
> : thinking of something like the -mlong-calls patch that is being worked on
>
> : for the arm? Then we'd never get inlining.
>
> I agree with Richard. I think that even if we do default to not
> inlining functions with target specific attributes we are still going
> to need the equivalent of a TARGET_CAN_INLINE_P macro to override this
> default.
>
> I am happy to rewrite my patch to go this way if this is what the
> concensus suggests.
Let's go this way. Feel free to create a macro which indicates that a
function with a machine specific attribute can be inlined.
[ TARGET_CAN_INLINE_P is a marginal name, since what we're really checking
is whether or not a target specific *attribute* should not inhibit inlining,
not whether the target supports inlining. ]
jeff