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: John Wehle <john at feith dot com>, egcs-patches at cygnus dot com
- Subject: Re: patch to improve i386 epilogue (version 5)
- From: Richard Henderson <rth at cygnus dot com>
- Date: Fri, 9 Oct 1998 11:29:12 -0700
- Cc: law at cygnus dot com
- References: <199810090552.BAA15636@jwlab.FEITH.COM>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Fri, Oct 09, 1998 at 01:52:25AM -0400, John Wehle wrote:
> Fri Oct 9 01:10:08 EDT 1998 John Wehle (john@feith.com)
>
> * flow.c: Update comment.
> (life_analysis_1): Set current_function_stack_pointer_is_stable.
> * function.c: Define it.
> (init_function_start): Initialize it.
> * output.h: Declare it.
> * i386.c (ix86_epilogue): Optimize the restoring
> of the stack pointer.
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
r~