alpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 7 Dec 2001 05:13:10 +0000 (05:13 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 7 Dec 2001 05:13:10 +0000 (05:13 +0000)
* alpha.c (function_arg): Cast value to HOST_WIDE_INT before
shifting.

From-SVN: r47747

gcc/ChangeLog
gcc/config/alpha/alpha.c

index f9d015fc9264522a812b7afbaead05a2de864b85..63e71d6c5bf55d914ad16785948b21b1801d8e4c 100644 (file)
@@ -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.
index db5f943b39167d284a2c06050995f1862c6b881e..66fd6c05dc4fa90c637bc46c9db7b49b13facd7b 100644 (file)
@@ -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);