This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: optimizing wrapper functions
- To: zack at rabi dot columbia dot edu (Zack Weinberg), egcs at cygnus dot com
- Subject: Re: optimizing wrapper functions
- From: Jason Merrill <jason at cygnus dot com>
- Date: 05 Dec 1998 15:20:40 -0800
- References: <199812052104.QAA03955.cygnus.egcs@blastula.phys.columbia.edu>
>>>>> Zack Weinberg <zack@rabi.columbia.edu> writes:
> [avoid setting up the call again for a wrapper function]
I like this idea.
> I guess GCC would have to recognize that the called function had an
> identical prototype to the wrapper, and was being called with the
> wrapper's arguments, to pull this off.
Yep. And that the arguments are only used under certain conditions in the
rest of the function. This would render the 'current_function_is_thunk'
support redundant.
Not that I'm going to have any time to work on this, mind you.
Jason