re PR target/56807 (mingw32: Conflict between stack realignment and stack probe destroys function argument in EAX)
PR target/56807 * config/i386/i386.c (ix86_expand_prologue): Address saved registers stack-relative, not via frame-pointer. From-SVN: r205864
This commit is contained in:
parent
342b1f78b0
commit
6ce027dc6d
|
@ -1,3 +1,9 @@
|
|||
2013-12-10 Kai Tietz <ktietz@redhat.com>
|
||||
|
||||
PR target/56807
|
||||
* config/i386/i386.c (ix86_expand_prologue): Address saved
|
||||
registers stack-relative, not via frame-pointer.
|
||||
|
||||
2013-12-03 Marek Polacek <polacek@redhat.com>
|
||||
|
||||
Backport from mainline
|
||||
|
|
|
@ -10431,14 +10431,15 @@ ix86_expand_prologue (void)
|
|||
|
||||
if (r10_live && eax_live)
|
||||
{
|
||||
t = choose_baseaddr (m->fs.sp_offset - allocate);
|
||||
t = plus_constant (Pmode, stack_pointer_rtx, allocate);
|
||||
emit_move_insn (r10, gen_frame_mem (Pmode, t));
|
||||
t = choose_baseaddr (m->fs.sp_offset - allocate - UNITS_PER_WORD);
|
||||
t = plus_constant (Pmode, stack_pointer_rtx,
|
||||
allocate - UNITS_PER_WORD);
|
||||
emit_move_insn (eax, gen_frame_mem (Pmode, t));
|
||||
}
|
||||
else if (eax_live || r10_live)
|
||||
{
|
||||
t = choose_baseaddr (m->fs.sp_offset - allocate);
|
||||
t = plus_constant (Pmode, stack_pointer_rtx, allocate);
|
||||
emit_move_insn ((eax_live ? eax : r10), gen_frame_mem (Pmode, t));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue