aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2006-04-04 15:27:08 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2006-04-04 15:27:08 +0000
commit3967bc2db066d725dc3142af6646d30856e19619 (patch)
treefff3867a793ffd5ce279442916bddd089c5be1ad /gcc/tree.c
parentb52be2c8a18aa0f7fe7082a5635d3906398a65b2 (diff)
downloadgcc-3967bc2db066d725dc3142af6646d30856e19619.zip
gcc-3967bc2db066d725dc3142af6646d30856e19619.tar.gz
gcc-3967bc2db066d725dc3142af6646d30856e19619.tar.bz2
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
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 2 insertions, 2 deletions
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);