diff options
author | kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-17 12:28:33 +0000 |
---|---|---|
committer | kcook <kcook@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-17 12:28:33 +0000 |
commit | 04b6f6e9a62cc70873c94fbf3c5010f090a6cea3 (patch) | |
tree | 5c1bf13de679d9ccf46d901892ca73ffdc4f9234 /gcc/config/i386 | |
parent | cdce97080349d609b40435ee70ed8844c4fb6ca8 (diff) | |
download | gcc-04b6f6e9a62cc70873c94fbf3c5010f090a6cea3.tar.gz |
* config/i386/i386.c (ix86_expand_prologue): Use
gen_allocate_stack_worker.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72601 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/i386.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index dbdb194fc74..580c393c5c4 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -5073,27 +5073,19 @@ ix86_expand_prologue (void) } else { - /* ??? Is this only valid for Win32? */ + /* Only valid for Win32 */ - rtx arg0, sym; + const rtx eax = gen_rtx_REG (SImode, 0); + rtx rtx_allocate = GEN_INT(allocate); if (TARGET_64BIT) - abort (); - - arg0 = gen_rtx_REG (SImode, 0); - emit_move_insn (arg0, GEN_INT (allocate)); - - sym = gen_rtx_MEM (FUNCTION_MODE, - gen_rtx_SYMBOL_REF (Pmode, "_alloca")); - insn = emit_call_insn (gen_call (sym, const0_rtx, constm1_rtx)); + abort (); - CALL_INSN_FUNCTION_USAGE (insn) - = gen_rtx_EXPR_LIST (VOIDmode, gen_rtx_USE (VOIDmode, arg0), - CALL_INSN_FUNCTION_USAGE (insn)); + insn = emit_move_insn (eax, rtx_allocate); + RTX_FRAME_RELATED_P (insn) = 1; - /* Don't allow scheduling pass to move insns across __alloca - call. */ - emit_insn (gen_blockage (const0_rtx)); + insn = emit_insn (gen_allocate_stack_worker (eax)); + RTX_FRAME_RELATED_P (insn) = 1; } if (frame.save_regs_using_mov && !TARGET_RED_ZONE) { |