Commit 36a1fa96 by Jeffrey A Law Committed by Jeff Law

integrate.c (expand_inline_function): Fix bugs in previous change from Oct 28, 1999.

        * integrate.c (expand_inline_function): Fix bugs in previous
        change from Oct 28, 1999.

From-SVN: r30312
parent 64b6368a
Sun Oct 31 23:03:25 1999 Jeffrey A Law (law@cygnus.com)
* integrate.c (expand_inline_function): Fix bugs in previous
change from Oct 28, 1999.
Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com> Sun Oct 31 20:27:45 1999 Mark Mitchell <mark@codesourcery.com>
* stmt.c (expand_value_return): Fix typo in this change: * stmt.c (expand_value_return): Fix typo in this change:
......
...@@ -1091,24 +1091,28 @@ expand_inline_function (fndecl, parms, target, ignore, type, ...@@ -1091,24 +1091,28 @@ expand_inline_function (fndecl, parms, target, ignore, type,
else if (set != 0 else if (set != 0
&& rtx_equal_p (SET_DEST (set), virtual_stack_vars_rtx)) && rtx_equal_p (SET_DEST (set), virtual_stack_vars_rtx))
{ {
HOST_WIDE_INT offset;
temp = map->reg_map[REGNO (SET_DEST (set))]; temp = map->reg_map[REGNO (SET_DEST (set))];
temp = VARRAY_CONST_EQUIV (map->const_equiv_varray, temp = VARRAY_CONST_EQUIV (map->const_equiv_varray,
REGNO (temp)).rtx; REGNO (temp)).rtx;
if (GET_CODE (temp) != PLUS if (rtx_equal_p (temp, virtual_stack_vars_rtx))
|| ! rtx_equal_p (XEXP (temp, 0), virtual_stack_vars_rtx) offset = 0;
|| GET_CODE (XEXP (temp, 1)) != CONST_INT) else if (GET_CODE (temp) == PLUS
&& rtx_equal_p (XEXP (temp, 0), virtual_stack_vars_rtx)
&& GET_CODE (XEXP (temp, 1)) == CONST_INT)
offset = INTVAL (XEXP (temp, 1));
else
abort (); abort ();
if (rtx_equal_p (SET_SRC (set), stack_pointer_rtx)) if (rtx_equal_p (SET_SRC (set), stack_pointer_rtx))
temp = SET_SRC (set); temp = SET_SRC (set);
else else
temp temp = force_operand (plus_constant (SET_SRC (set),
= force_operand (plus_constant (SET_SRC (set), - offset),
- INTVAL (XEXP (temp, 1))), NULL_RTX);
NULL_RTX);
copy = emit_move_insn (SET_DEST (set), temp); copy = emit_move_insn (virtual_stack_vars_rtx, temp);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment