diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2018-08-24 08:06:06 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2018-08-24 08:06:06 +0000 |
commit | 19b293bfa70872c850f2d399fc2facf4687e76ee (patch) | |
tree | 62ecfe9d7ef0cc3d7af74f085bf980a221544213 | |
parent | 17a4648c66299d42ae6b224fa8208f9f65443f59 (diff) | |
download | gcc-19b293bfa70872c850f2d399fc2facf4687e76ee.zip gcc-19b293bfa70872c850f2d399fc2facf4687e76ee.tar.gz gcc-19b293bfa70872c850f2d399fc2facf4687e76ee.tar.bz2 |
PR 87073/bootstrap
PR 87073/bootstrap
* wide-int-range.cc (wide_int_range_div): Do not ignore result
from wide_int_range_multiplicative_op.
From-SVN: r263828
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/wide-int-range.cc | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0484e7..7c757c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-08-24 Aldy Hernandez <aldyh@redhat.com> + + PR 87073/bootstrap + * wide-int-range.cc (wide_int_range_div): Do not ignore result + from wide_int_range_multiplicative_op. + 2018-08-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * tree-vect-data-refs.c (vect_grouped_store_supported): Fix typo diff --git a/gcc/wide-int-range.cc b/gcc/wide-int-range.cc index cbc71c2..3cdcede 100644 --- a/gcc/wide-int-range.cc +++ b/gcc/wide-int-range.cc @@ -687,14 +687,11 @@ wide_int_range_div (wide_int &wmin, wide_int &wmax, /* If we know we won't divide by zero, just do the division. */ if (!wide_int_range_includes_zero_p (divisor_min, divisor_max, sign)) - { - wide_int_range_multiplicative_op (wmin, wmax, code, sign, prec, - dividend_min, dividend_max, - divisor_min, divisor_max, - overflow_undefined, - overflow_wraps); - return true; - } + return wide_int_range_multiplicative_op (wmin, wmax, code, sign, prec, + dividend_min, dividend_max, + divisor_min, divisor_max, + overflow_undefined, + overflow_wraps); /* If flag_non_call_exceptions, we must not eliminate a division by zero. */ |