regmove.c (combine_stack_adjustments_for_block): Check that the stack pointer is a valid memory address.

* regmove.c (combine_stack_adjustments_for_block): Check that
        the stack pointer is a valid memory address.

From-SVN: r32691
This commit is contained in:
Stephane Carrez 2000-03-23 00:05:12 +01:00 committed by Richard Henderson
parent 124906f908
commit 5d64361bdc
2 changed files with 6 additions and 0 deletions

@ -1,3 +1,8 @@
2000-03-21 Stephane Carrez <stcarrez@worldnet.fr>
* regmove.c (combine_stack_adjustments_for_block): Check that
the stack pointer is a valid memory address.
Wed Mar 22 11:44:50 MET 2000 Jan Hubicka <jh@suse.cz>
* calls.c: re-install Mar 16 emit_library_call merge.

@ -2361,6 +2361,7 @@ combine_stack_adjustments_for_block (bb)
&& GET_CODE (XEXP (dest, 0)) == PRE_DEC
&& XEXP (XEXP (dest, 0), 0) == stack_pointer_rtx
&& ! reg_mentioned_p (stack_pointer_rtx, src)
&& memory_address_p (GET_MODE (dest), stack_pointer_rtx)
&& validate_change (insn, &SET_DEST (set),
change_address (dest, VOIDmode,
stack_pointer_rtx), 0))