aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/recog.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2663dae..17bc7ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Tue Jun 12 17:25:39 CEST 2001 Jan Hubicka <jh@suse.cz>
+
+ * recog.c (validate_replace_rtx_1): Do plus_constant call always.
+
Tue Jun 12 17:24:07 CEST 2001 Jan Hubicka <jh@suse.cz>
* simplify-rtx.c (simplify_subreg): Allow volatile memory
diff --git a/gcc/recog.c b/gcc/recog.c
index c823ea1..8da4a84 100644
--- a/gcc/recog.c
+++ b/gcc/recog.c
@@ -510,7 +510,7 @@ validate_replace_rtx_1 (loc, from, to, object)
plus_constant to try to simplify it.
??? We may want later to remove this, once simplification is
separated from this function. */
- if (GET_CODE (XEXP (x, 1)) == CONST_INT && XEXP (x, 1) == to)
+ if (GET_CODE (XEXP (x, 1)) == CONST_INT)
validate_change (object, loc,
plus_constant (XEXP (x, 0), INTVAL (to)), 1);
break;