From 94a3e63aca7046a958925c13d094234d3e7421b3 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Mon, 16 May 2005 04:36:09 +0000 Subject: tree-scalar-evolution.c (set_nb_iterations_in_loop): Only check for TREE_OVERFLOW on INTEGER_CST trees. * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only check for TREE_OVERFLOW on INTEGER_CST trees. * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on CONSTANT_CLASS_P tree nodes. From-SVN: r99765 --- gcc/tree-chrec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/tree-chrec.c') diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index 967a3cd..cb72df0 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -1062,9 +1062,11 @@ chrec_convert (tree type, tree res = fold_convert (type, chrec); /* Don't propagate overflows. */ - TREE_OVERFLOW (res) = 0; if (CONSTANT_CLASS_P (res)) - TREE_CONSTANT_OVERFLOW (res) = 0; + { + TREE_CONSTANT_OVERFLOW (res) = 0; + TREE_OVERFLOW (res) = 0; + } /* But reject constants that don't fit in their type after conversion. This can happen if TYPE_MIN_VALUE or TYPE_MAX_VALUE are not the -- cgit v1.1