aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@act-europe.fr>2003-04-15 00:08:51 +0200
committerRichard Kenner <kenner@gcc.gnu.org>2003-04-14 18:08:51 -0400
commit41ee320444443de9d720893df8064319da2d2f78 (patch)
tree087f3164c82e2febf197e1d13ad11f7bdbcf7783 /gcc/explow.c
parent39d658e3950054b6f18727d907a047a4dd6c10d4 (diff)
downloadgcc-41ee320444443de9d720893df8064319da2d2f78.zip
gcc-41ee320444443de9d720893df8064319da2d2f78.tar.gz
gcc-41ee320444443de9d720893df8064319da2d2f78.tar.bz2
explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used to round CONST_INT sizes.
* explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used to round CONST_INT sizes. From-SVN: r65600
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index 9ed034e..b6c290f 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -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;
}