mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 22:11:47 +08:00
(move_for_stack_reg): Avoid stack overflow while storing XFmode from
fp reg to memory. From-SVN: r11564
This commit is contained in:
parent
7a1b98a901
commit
314d1f3c28
@ -1904,7 +1904,7 @@ move_for_stack_reg (insn, regstack, pat)
|
||||
regstack->top--;
|
||||
CLEAR_HARD_REG_BIT (regstack->reg_set, REGNO (src));
|
||||
}
|
||||
else if (GET_MODE (src) == XFmode && regstack->top != REG_STACK_SIZE)
|
||||
else if (GET_MODE (src) == XFmode && regstack->top < REG_STACK_SIZE - 1)
|
||||
{
|
||||
/* A 387 cannot write an XFmode value to a MEM without
|
||||
clobbering the source reg. The output code can handle
|
||||
|
Loading…
x
Reference in New Issue
Block a user