From: Jakub Jelinek Date: Tue, 28 Jun 2016 08:29:11 +0000 (+0200) Subject: re PR rtl-optimization/71673 (FAIL: c-c++-common/torture/builtin-arith-overflow-p... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95ef39f4415224f4d98c85c10a9efa9f2f952fe0;p=gcc.git re PR rtl-optimization/71673 (FAIL: c-c++-common/torture/builtin-arith-overflow-p-19.c -O2 (internal compiler error)) PR rtl-optimization/71673 * internal-fn.c (expand_arith_overflow_result_store): Use OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to expand_simple_binop. From-SVN: r237815 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad247ce0f20..338c60331d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2016-06-28 Jakub Jelinek + PR rtl-optimization/71673 + * internal-fn.c (expand_arith_overflow_result_store): Use + OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to + expand_simple_binop. + PR middle-end/66867 * builtins.c (expand_ifn_atomic_compare_exchange_into_call, expand_ifn_atomic_compare_exchange): New functions. diff --git a/gcc/internal-fn.c b/gcc/internal-fn.c index 5dd813f707a..49f34958663 100644 --- a/gcc/internal-fn.c +++ b/gcc/internal-fn.c @@ -454,7 +454,7 @@ expand_arith_overflow_result_store (tree lhs, rtx target, = immed_wide_int_const (wi::shifted_mask (0, prec, false, tgtprec), tgtmode); lres = expand_simple_binop (tgtmode, AND, res, mask, NULL_RTX, - true, OPTAB_DIRECT); + true, OPTAB_LIB_WIDEN); } else {