Disable sibcall optimization when -Os

Dale Johannesen dalej@apple.com
Mon Apr 14 21:32:00 GMT 2003


On Monday, April 14, 2003, at 02:01  PM, tm_gccmail@mail.kloo.net wrote:

> On Mon, 14 Apr 2003, Dale Johannesen wrote:
>
>> On Monday, April 14, 2003, at 12:51  PM, tm_gccmail@mail.kloo.net 
>> wrote:
>
>>> Therefore, I would like to see sibcall optimization disabled at -Os
>>
>> I think that's too big a hammer; it's often useful.
>>
> The only problem is this is a huge size regression until it is fixed.
> IMHO it should be disabled at -Os until it can be fixed.

It's not a size regression in all environments; it's a considerable 
winner
on size building MacOS on ppc, for example.  The main reason is that
functions containing only one call can become leaves, and then you get
rid of the entire prolog/epilog.



More information about the Gcc-patches mailing list