This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]