Re: [PATCH] x86: Use -m-omit-leaf-frame-pointer to shrink text size

From: H. Peter Anvin
Date: Fri Dec 16 2011 - 10:34:09 EST


On 12/16/2011 04:00 AM, Ingo Molnar wrote:
>>
>> Are you sure about that even if the leaf function uses rBP for
>> a different purpose?
>
> Well, i assumed that GCC does not mess with %bp in leaf
> functions - a frame pointer is barely useful if it's destroyed
> spuriously in leaf functions.
>

We should verify that explicitly. gcc has every "right" to treat it as
a normal callee-saved register, but I think it is a very low priority
register in gcc's register allocation scheme.

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/