From 3737c3eb7f4834677e4dd56e4217a449f10ee2e8 Mon Sep 17 00:00:00 2001 From: kenner Date: Mon, 14 Apr 2003 22:08:51 +0000 Subject: * explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used to round CONST_INT sizes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65600 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 3 +++ gcc/explow.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b7c46908861..8b5988b5b7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -23,6 +23,9 @@ 2003-04-14 Olivier Hainque + * 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 diff --git a/gcc/explow.c b/gcc/explow.c index 9ed034eb1a9..b6c290f1606 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; } -- cgit v1.2.1