OSDN Git Service

2012-05-30 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2012 12:32:10 +0000 (12:32 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2012 12:32:10 +0000 (12:32 +0000)
commit20b3993647224d6cdd8f5f644637bc3235db18c2
tree8a4b703c586d810927a60788d58a6915fba49ed1
parent158ae3a245a1bda6ede106e1bf30085863107d17
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@188010 138bc75d-0d04-0410-961f-82ee72b054a4
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]