re PR middle-end/68528 ([5 Only] Wrong constant folding)
authorRichard Biener <rguenther@suse.de>
Wed, 25 Nov 2015 14:21:25 +0000 (14:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 25 Nov 2015 14:21:25 +0000 (14:21 +0000)
commit7dd663f547b9b69755ba9b3bcadcc96f82e830e4
treed9ddc59b42ea01fae75000cf1c225f2de9467eb5
parent5ab662d507d1576731e25013c7134c670daf40eb
re PR middle-end/68528 ([5 Only] Wrong constant folding)

2015-11-25  Richard Biener  <rguenther@suse.de>

PR middle-end/68528
* fold-const.c (fold_binary_loc): Do not call negate_expr_p
on stripped operands.

* gcc.dg/torture/pr68528.c: New testcase.

From-SVN: r230870
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr68528.c [new file with mode: 0644]