aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-06-12 17:26:49 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-06-12 15:26:49 +0000
commit5fecb528688715f1ba0663a2c714a4a7ccc9149b (patch)
tree5bf383403881e080a7153ac098a418751d37e9ee /gcc
parent04864a4677563e47ce9adf9467f91ad42b41c0a0 (diff)
downloadgcc-5fecb528688715f1ba0663a2c714a4a7ccc9149b.zip
gcc-5fecb528688715f1ba0663a2c714a4a7ccc9149b.tar.gz
gcc-5fecb528688715f1ba0663a2c714a4a7ccc9149b.tar.bz2
* recog.c (validate_replace_rtx_1): Do plus_constant call always.
From-SVN: r43262
Diffstat (limited to 'gcc')
-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;