summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/reload1.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e16fcac3496..55a5d12bddb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-20 Krister Walfridsson <cato@df.lth.se>
+
+ * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
+
2002-05-20 H.J. Lu (hjl@gnu.org)
Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 1349c3c8559..dca052e7497 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -8077,8 +8077,8 @@ reload_cse_simplify (insn)
if (!count && reload_cse_noop_set_p (body))
{
rtx value = SET_DEST (body);
- if (GET_CODE (body) == REG
- && ! REG_FUNCTION_VALUE_P (SET_DEST (body)))
+ if (REG_P (value)
+ && ! REG_FUNCTION_VALUE_P (value))
value = 0;
reload_cse_delete_noop_set (insn, value);
return;