From: Richard Biener Date: Tue, 29 Jul 2014 11:10:49 +0000 (+0000) Subject: re PR middle-end/52478 (-ftrapv calls the wrong functions in libgcc) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e05531efb7fb5ef03d1e62c95c73c87d71e91d49;p=gcc.git re PR middle-end/52478 (-ftrapv calls the wrong functions in libgcc) 2014-07-29 Richard Biener PR middle-end/52478 * expr.c (expand_expr_real_2): Revert last change. From-SVN: r213153 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 484a5e18101..2166cd76ac2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-29 Richard Biener + + PR middle-end/52478 + * expr.c (expand_expr_real_2): Revert last change. + 2014-07-28 Jan Hubicka * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data. diff --git a/gcc/expr.c b/gcc/expr.c index de0da345198..d8328eebfbf 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -9212,9 +9212,7 @@ expand_expr_real_2 (sepops ops, rtx target, enum machine_mode tmode, if (modifier == EXPAND_STACK_PARM) target = 0; temp = expand_binop (mode, this_optab, op0, op1, target, - unsignedp, - trapv_binoptab_p (this_optab) - ? OPTAB_LIB : OPTAB_LIB_WIDEN); + unsignedp, OPTAB_LIB_WIDEN); gcc_assert (temp); /* Bitwise operations do not need bitfield reduction as we expect their operands being properly truncated. */