Messages in this thread | | | Date | Fri, 16 Dec 2011 08:27:09 -0800 | From | Richard Henderson <> | Subject | Re: [PATCH] x86: Use -m-omit-leaf-frame-pointer to shrink text size |
| |
On 12/16/2011 02:20 AM, Peter Zijlstra wrote: >> How can we tell gcc the asm contains a call, or otherwise suppress the >> "leaf function" classification?
You can't at present.
> I only found the function __attribute__((leaf)) to explicitly mark a > function as being a leaf function, but the documentation doesn't list > the inverse of that to explicitly mark it as _not_ being one.
In any case, "leaf" doesn't do what you think it does -- see the docs. I told Honza at the time that he was overloading existing terminology without purpose, but no one came up with a better name before the release, so it stayed that way. AFAIK, no one uses it because no one understands it.
Do you have a proposal for what you'd like the extension to look like? The only thing that comes to mind atm is "call" in the clobber section. This is not likely to get written before gcc 4.8 though...
r~
| |