]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used to...
authorOlivier Hainque <hainque@act-europe.fr>
Mon, 14 Apr 2003 22:08:51 +0000 (00:08 +0200)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 14 Apr 2003 22:08:51 +0000 (18:08 -0400)
* explow.c (round_push): Use HOST_WIDE_INT instead of int for the
temporary used to round CONST_INT sizes.

From-SVN: r65600

gcc/ChangeLog
gcc/explow.c

index b7c46908861c347cec9434449921b75a68af44d1..8b5988b5b7f2b3e90534f011b04b9c5ce88e1e6e 100644 (file)
@@ -23,6 +23,9 @@
 
 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
 
+       * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
+       temporary used to round CONST_INT sizes.
+
        * tree.c (int_fits_type_p): Extract generic checks from the case
        of constant type bounds. Refine the checks against constant type
        bounds to allow for possible decisions against each of these bounds
index 9ed034eb1a986805143f4764c6e07b710c742374..b6c290f160663131fa1e20a189dd58ba1d3fdf33 100644 (file)
@@ -945,11 +945,14 @@ round_push (size)
      rtx size;
 {
   int align = PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT;
+
   if (align == 1)
     return size;
+
   if (GET_CODE (size) == CONST_INT)
     {
-      int new = (INTVAL (size) + align - 1) / align * align;
+      HOST_WIDE_INT new = (INTVAL (size) + align - 1) / align * align;
+
       if (INTVAL (size) != new)
        size = GEN_INT (new);
     }
@@ -964,6 +967,7 @@ round_push (size)
                            NULL_RTX, 1);
       size = expand_mult (Pmode, size, GEN_INT (align), NULL_RTX, 1);
     }
+
   return size;
 }
 \f