This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to improve i386 epilogue (version 5)
- To: rth at cygnus dot com, egcs-patches at cygnus dot com
- Subject: Re: patch to improve i386 epilogue (version 5)
- From: John Wehle <john at feith dot com>
- Date: Fri, 9 Oct 1998 15:47:19 -0400 (EDT)
- Cc: law at cygnus dot com
> Am I missing something, or are you working way too hard for this?
>
> /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
> the stack pointer does not matter. The value is tested only in
> functions that have frame pointers.
> No definition is equivalent to always zero. */
> /* Note on the 386 it might be more efficient not to define this since
> we have to restore it ourselves from the frame pointer, in order to
> use pop */
>
> #define EXIT_IGNORE_STACK 1
I belive that not defining EXIT_IGNORE_STACK disables some useful
optimizations. The idea is to let gcc do these optimizations
and to simply notice when they haven't been done which means that
the stack pointer doesn't need to be reloaded.
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------