summaryrefslogtreecommitdiff
path: root/gcc/tree-chrec.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 04:36:09 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 04:36:09 +0000
commit4bafeac179eebd4d5979d2454b4fc2d2bfab6f59 (patch)
tree7d1d7246dd3c847c51837e7d52c7dd222df2c14c /gcc/tree-chrec.c
parent0f0129f76851c328a15578e9c8a3d63b001b25c9 (diff)
downloadgcc-4bafeac179eebd4d5979d2454b4fc2d2bfab6f59.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99765 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-chrec.c')
-rw-r--r--gcc/tree-chrec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c
index 967a3cd8158..cb72df0aad3 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