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]

Re: patch to improve i386 epilogue (version 5)


> 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  |                         |
-------------------------------------------------------------------------



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