OSDN Git Service

2006-05-25 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 May 2006 12:39:52 +0000 (12:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 25 May 2006 12:39:52 +0000 (12:39 +0000)
commit2b2c6e116ecc7709a62e0f687415ee9f6843223e
tree668a674da46ef3465f8087dae52ea497879ab501
parent85fd66984472b68d84b6f1b003c43c41fa0ecf54
2006-05-25  Richard Guenther  <rguenther@suse.de>

PR middle-end/27743
* fold-const.c (fold_binary): Do not look at the stripped
op0 for (a OP c1) OP c2 to a OP (c1+c2) shift optimization.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114112 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr27743.c [new file with mode: 0644]