Re: How to disable gcc automatic inlining ?
Re: How to disable gcc automatic inlining ?
- Subject: Re: How to disable gcc automatic inlining ?
- From: Steve Checkoway <email@hidden>
- Date: Tue, 11 Nov 2008 07:50:27 -0800
On Nov 11, 2008, at 5:32 AM, Paul Russell wrote:
How I can I use -O3 optimisation but disable automatic inlining of
non-inline functions ? The only workaround I have found so far is to
use __attribute__ ((noinline)) on every static function which I want
to prevent from being inlined, which is very tedious. Ideally I'd
just like a compiler switch which would make this the default
behaviour at -O3, so that only explicitly defined inline functions
will be inlined, but I can't see anything which controls this in the
gcc docs.
-fno-inline-functions
It's listed in the man page.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden