(c_sizeof): Call force_fit_type only for INTEGER_CST.

From-SVN: r3103
This commit is contained in:
Richard Stallman 1993-01-05 22:52:25 +00:00
parent f159813b6a
commit fa42713123
1 changed files with 3 additions and 1 deletions

View File

@ -727,7 +727,9 @@ c_sizeof (type)
/* Convert in case a char is more than one unit. */
t = size_binop (CEIL_DIV_EXPR, TYPE_SIZE (type),
size_int (TYPE_PRECISION (char_type_node)));
force_fit_type (t);
/* size_binop does not put the constant in range, so do it now. */
if (TREE_CODE (t) == INTEGER_CST)
force_fit_type (t);
return t;
}