aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-12-07 05:13:10 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-12-07 05:13:10 +0000
commit999c746f86295779c302340eb5d1f7c1a4f0765c (patch)
treeb167e3980060346c0e094a2465e093588932b002 /gcc
parent21366e6fe51f8e381c142bd6074f660a8839ab63 (diff)
downloadgcc-999c746f86295779c302340eb5d1f7c1a4f0765c.zip
gcc-999c746f86295779c302340eb5d1f7c1a4f0765c.tar.gz
gcc-999c746f86295779c302340eb5d1f7c1a4f0765c.tar.bz2
alpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting.
* alpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting. From-SVN: r47747
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/alpha/alpha.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f9d015f..63e71d6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * alpha.c (function_arg): Cast value to HOST_WIDE_INT before
+ shifting.
+
2001-12-06 Aldy Hernandez <aldyh@redhat.com>
* rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index db5f943..66fd6c0 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -5385,7 +5385,8 @@ function_arg (cum, mode, type, named)
#if HOST_BITS_PER_WIDE_INT == 32
hi = (cum.num_args << 20) | cum.num_arg_words;
#else
- lo = lo | (cum.num_args << 52) | (cum.num_arg_words << 32);
+ lo = lo | ((HOST_WIDE_INT) cum.num_args << 52)
+ | ((HOST_WIDE_INT) cum.num_arg_words << 32);
hi = 0;
#endif
ciw = immed_double_const (lo, hi, DImode);