aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cse.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3b4ffe2..024e4e6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Mon Aug 30 20:21:34 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * cse.c: (fold_rtx): Cast to HOST_WIDE_INT in left shift.
+
Mon Aug 30 16:07:49 1999 Richard Henderson <rth@cygnus.com>
* flow.c (new_insn_dead_notes): Use sets_reg_or_subreg not
diff --git a/gcc/cse.c b/gcc/cse.c
index 8197e42..baa4236 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -5809,7 +5809,8 @@ fold_rtx (x, insn)
But The Sun V5.0 compilers mis-compiled that test. So
instead we test for the problematic value in a more direct
manner and hope the Sun compilers get it correct. */
- && INTVAL (const_arg1) != (1 << (HOST_BITS_PER_WIDE_INT - 1))
+ && INTVAL (const_arg1) !=
+ ((HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT - 1))
&& GET_CODE (folded_arg1) == REG)
{
rtx new_const = GEN_INT (- INTVAL (const_arg1));