From 3967bc2db066d725dc3142af6646d30856e19619 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Tue, 4 Apr 2006 15:27:08 +0000 Subject: builtins.c (fold_builtin_sprintf): Use fold_convert instead of convert in the middle-end. * builtins.c (fold_builtin_sprintf): Use fold_convert instead of convert in the middle-end. * expr.c (store_expr, store_constructor, get_inner_reference, expand_expr_real_1, string_constant, try_casesi, try_tablejump): Likewise. * tree.c (build_range_type): Likewise. From-SVN: r112670 --- gcc/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 0c958e8..b67c2fa 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -5021,8 +5021,8 @@ build_range_type (tree type, tree lowval, tree highval) if (type == NULL_TREE) type = sizetype; - TYPE_MIN_VALUE (itype) = convert (type, lowval); - TYPE_MAX_VALUE (itype) = highval ? convert (type, highval) : NULL; + TYPE_MIN_VALUE (itype) = fold_convert (type, lowval); + TYPE_MAX_VALUE (itype) = highval ? fold_convert (type, highval) : NULL; TYPE_PRECISION (itype) = TYPE_PRECISION (type); TYPE_MODE (itype) = TYPE_MODE (type); -- cgit v1.1