Commit 41ee3204 by Olivier Hainque Committed by Richard Kenner

explow.c (round_push): Use HOST_WIDE_INT instead of int for the temporary used…

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
parent 39d658e3
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
2003-04-14 Olivier Hainque <hainque@act-europe.fr> 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 * tree.c (int_fits_type_p): Extract generic checks from the case
of constant type bounds. Refine the checks against constant type of constant type bounds. Refine the checks against constant type
bounds to allow for possible decisions against each of these bounds bounds to allow for possible decisions against each of these bounds
......
...@@ -945,11 +945,14 @@ round_push (size) ...@@ -945,11 +945,14 @@ round_push (size)
rtx size; rtx size;
{ {
int align = PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT; int align = PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT;
if (align == 1) if (align == 1)
return size; return size;
if (GET_CODE (size) == CONST_INT) 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) if (INTVAL (size) != new)
size = GEN_INT (new); size = GEN_INT (new);
} }
...@@ -964,6 +967,7 @@ round_push (size) ...@@ -964,6 +967,7 @@ round_push (size)
NULL_RTX, 1); NULL_RTX, 1);
size = expand_mult (Pmode, size, GEN_INT (align), NULL_RTX, 1); size = expand_mult (Pmode, size, GEN_INT (align), NULL_RTX, 1);
} }
return size; return size;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment