mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 17:09:47 +08:00
reload1.c (eliminate_regs_in_insn): Handle another case when eliminating the frame pointer to the hard frame pointer.
* reload1.c (eliminate_regs_in_insn): Handle another case when eliminating the frame pointer to the hard frame pointer. Add missing ep->to_rtx check to one existing case. From-SVN: r21705
This commit is contained in:
parent
988ee12c8a
commit
bb22893c61
@ -1,5 +1,9 @@
|
||||
Thu Aug 13 20:14:40 1998 Jim Wilson <wilson@cygnus.com>
|
||||
|
||||
* reload1.c (eliminate_regs_in_insn): Handle another case when
|
||||
eliminating the frame pointer to the hard frame pointer. Add
|
||||
missing ep->to_rtx check to one existing case.
|
||||
|
||||
* mips/mips.md (movhi_internal2+2): Fix typo mem:SI -> mem:HI.
|
||||
|
||||
Thu Aug 13 17:08:11 1998 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
@ -3416,8 +3416,13 @@ eliminate_regs_in_insn (insn, replace)
|
||||
if (src == ep->to_rtx)
|
||||
offset = 0, ok = 1;
|
||||
else if (GET_CODE (src) == PLUS
|
||||
&& GET_CODE (XEXP (src, 0)) == CONST_INT)
|
||||
&& GET_CODE (XEXP (src, 0)) == CONST_INT
|
||||
&& XEXP (src, 1) == ep->to_rtx)
|
||||
offset = INTVAL (XEXP (src, 0)), ok = 1;
|
||||
else if (GET_CODE (src) == PLUS
|
||||
&& GET_CODE (XEXP (src, 1)) == CONST_INT
|
||||
&& XEXP (src, 0) == ep->to_rtx)
|
||||
offset = INTVAL (XEXP (src, 1)), ok = 1;
|
||||
else if ((prev_insn = prev_nonnote_insn (insn)) != 0
|
||||
&& (prev_set = single_set (prev_insn)) != 0
|
||||
&& rtx_equal_p (SET_DEST (prev_set), src))
|
||||
|
Loading…
Reference in New Issue
Block a user