diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2005-09-08 18:37:20 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2005-09-08 16:37:20 +0000 |
commit | 5c9186cec38354d5b51e41cbfb37d89a1a8ddca9 (patch) | |
tree | 8bbfa509269df1cf8b44fcf65705fbc8f29d043a | |
parent | 068e7338865ad5fea910a27f87c7007d8def8517 (diff) | |
download | gcc-5c9186cec38354d5b51e41cbfb37d89a1a8ddca9.zip gcc-5c9186cec38354d5b51e41cbfb37d89a1a8ddca9.tar.gz gcc-5c9186cec38354d5b51e41cbfb37d89a1a8ddca9.tar.bz2 |
tree-vrp.c (extract_range_from_unary_expr): Do not set the range for the result of a conversion if...
* tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
the result of a conversion if the new min and max cannot be compared.
From-SVN: r104036
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aaaf308..2548e32 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr> + + * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for + the result of a conversion if the new min and max cannot be compared. + 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.c (s390_sr_alias_set): Variable removed. diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index ab6dc58..a7be2d9 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -1341,7 +1341,7 @@ extract_range_from_unary_expr (value_range_t *vr, tree expr) && tree_int_cst_equal (new_min, vr0.min) && tree_int_cst_equal (new_max, vr0.max) && compare_values (new_min, new_max) <= 0 - && compare_values (new_min, new_max) >= -2) + && compare_values (new_min, new_max) >= -1) { set_value_range (vr, VR_RANGE, new_min, new_max, vr->equiv); return; |