From f05011492be2d32526bbc5303d1121dd70ed9a1c Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 18 Sep 1997 07:45:15 +0000 Subject: [PATCH] pa.md (reload_peepholes): Don't allow addresses with side effects for the memory operand. * pa.md (reload_peepholes): Don't allow addresses with side effects for the memory operand. Geez, how long have we been screwing this up... From-SVN: r15536 --- gcc/ChangeLog | 5 +++++ gcc/config/pa/pa.md | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d12a8f6fe5..c199435e7ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 18 01:47:06 1997 Jeffrey A Law (law@cygnus.com) + + * pa.md (reload_peepholes): Don't allow addresses with side + effects for the memory operand. + Wed Sep 17 18:19:53 1997 Jason Merrill * libgcc2.c (find_exception_handler): Subtract one from our PC when diff --git a/gcc/config/pa/pa.md b/gcc/config/pa/pa.md index 1844a6ea844..138f675af00 100644 --- a/gcc/config/pa/pa.md +++ b/gcc/config/pa/pa.md @@ -4846,6 +4846,7 @@ && GET_MODE (operands[0]) == DFmode && GET_CODE (operands[1]) == REG && GET_CODE (operands[2]) == REG + && ! side_effects_p (XEXP (operands[0], 0)) && REGNO_REG_CLASS (REGNO (operands[1])) == REGNO_REG_CLASS (REGNO (operands[2]))" "* @@ -4885,6 +4886,7 @@ && GET_MODE (operands[0]) == DFmode && GET_CODE (operands[0]) == REG && GET_CODE (operands[2]) == REG + && ! side_effects_p (XEXP (operands[1], 0)) && REGNO_REG_CLASS (REGNO (operands[0])) == REGNO_REG_CLASS (REGNO (operands[2]))" "* -- 2.30.2