From 19b293bfa70872c850f2d399fc2facf4687e76ee Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Fri, 24 Aug 2018 08:06:06 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/wide-int-range.cc | 13 +++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0484e78a87..7c757c0ef41 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-08-24 Aldy Hernandez + + 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 * 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 cbc71c25cfe..3cdcede04cd 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. */ -- 2.30.2