summaryrefslogtreecommitdiff
path: root/gcc/config/i386/i386.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-28 05:26:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-28 05:26:23 +0000
commitd8fec1042a0324b660e453112d92e9a6b5773e0c (patch)
treed0d2099136724346b286c78685dddeb838bd7b1e /gcc/config/i386/i386.c
parent2ca3d4265da8753b1bf9b447e99bfc4f6259e17c (diff)
downloadgcc-d8fec1042a0324b660e453112d92e9a6b5773e0c.tar.gz
PR target/17406
* config/i386/i386.c (ix86_expand_prologue): Add REG_FRAME_RELATED_EXPR note for allocate_stack_worker insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92662 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/i386.c')
-rw-r--r--gcc/config/i386/i386.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 054da85e404..6e65969cdb6 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -4331,6 +4331,7 @@ ix86_expand_prologue (void)
/* Only valid for Win32. */
rtx eax = gen_rtx_REG (SImode, 0);
bool eax_live = ix86_eax_live_at_start_p ();
+ rtx t;
if (TARGET_64BIT)
abort ();
@@ -4341,15 +4342,17 @@ ix86_expand_prologue (void)
allocate -= 4;
}
- insn = emit_move_insn (eax, GEN_INT (allocate));
- RTX_FRAME_RELATED_P (insn) = 1;
+ emit_move_insn (eax, GEN_INT (allocate));
insn = emit_insn (gen_allocate_stack_worker (eax));
RTX_FRAME_RELATED_P (insn) = 1;
+ t = gen_rtx_PLUS (Pmode, stack_pointer_rtx, GEN_INT (-allocate));
+ t = gen_rtx_SET (VOIDmode, stack_pointer_rtx, t);
+ REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR,
+ t, REG_NOTES (insn));
if (eax_live)
{
- rtx t;
if (frame_pointer_needed)
t = plus_constant (hard_frame_pointer_rtx,
allocate