re PR tree-optimization/53501 (scev introduces signed overflow)
authorRichard Guenther <rguenther@suse.de>
Wed, 30 May 2012 12:29:26 +0000 (12:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 30 May 2012 12:29:26 +0000 (12:29 +0000)
commite40a96803c2deb2e9b0eb3dbc8fbcea4f3c02a30
tree618c3869f54a501b0026e00d36d8f0bce2a3cb72
parent08cad606cd17afa03e68debc31cc6ee532b3f951
re PR tree-optimization/53501 (scev introduces signed overflow)

2012-05-30  Richard Guenther  <rguenther@suse.de>

PR middle-end/53501
* fold-const.c (fold_binary_loc): Make sure to call
fold_plusminus_mult_expr with the original sign of operands.

* gcc.dg/torture/pr53501.c: New testcase.
* c-c++-common/restrict-2.c: Adjust.

From-SVN: r188009
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/restrict-2.c
gcc/testsuite/gcc.dg/torture/pr53501.c [new file with mode: 0644]