re PR middle-end/52478 (-ftrapv calls the wrong functions in libgcc)

2014-07-29  Richard Biener  <rguenther@suse.de>

	PR middle-end/52478
	* expr.c (expand_expr_real_2): Revert last change.

From-SVN: r213153
This commit is contained in:
Richard Biener 2014-07-29 11:10:49 +00:00 committed by Richard Biener
parent 3339f0bcb0
commit e05531efb7
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-07-29 Richard Biener <rguenther@suse.de>
PR middle-end/52478
* expr.c (expand_expr_real_2): Revert last change.
2014-07-28 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.

View File

@ -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. */