This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix AMD64 handling of functions with huge stack frames
On Thu, Oct 23, 2003 at 05:25:22PM +0200, Jakub Jelinek wrote:
> * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
> to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
> if TARGET_64BIT.
> (pro_epilogue_adjust_stack): New function.
> (ix86_expand_prologue, ix86_expand_epilogue): Use it.
> * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
> (pro_epilogue_adjust_stack_1): Remove * in front of name.
> (pro_epilogue_adjust_stack_rex64_2): New insn.
>
> * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
>
> * config/i386/i386.c (ix86_expand_call): Replace 40 with
> FIRST_REX_INT_REG + 3 /* R11 */.
>
> * gcc.c-torture/compile/20031023-1.c: New test.
> * gcc.c-torture/compile/20031023-2.c: New test.
> * gcc.c-torture/compile/20031023-3.c: New test.
> * gcc.c-torture/compile/20031023-4.c: New test.
Ok.
> + [(set (attr "type")
> + (if_then_else (eq_attr "alternative" "0")
> + (const_string "alu")
> + (const_string "lea")))
(set_attr "type" "alu,lea")
?