This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH [i386 windows targets]: Disallow regparm for functionsthat
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Kai Henningsen <kaih at khms dot westfalen dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 26 Oct 2003 09:23:09 -0500 (EST)
- Subject: Re: PATCH [i386 windows targets]: Disallow regparm for functionsthat
On 26 Oct 2003, Kai Henningsen wrote:
> > It's not necessarily pointless. There is still a potential space savings
> > in using regparm even if there isn't a speed savings. Since the called
> > function often just pushes the arguments on the stack anyway, it is
> > not necessarily a loss, if the patch is properly done, either.
>
> Do not forget that it may also be necessary to match the caller's ideas
> about the ABI. You don't always control both ends of the interface.
Which is why the cgraph optimizers only apply regparm to non-public
functions that don't have their address taken.
Jeff