OSDN Git Service

2006-07-05 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jul 2006 15:49:12 +0000 (15:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Jul 2006 15:49:12 +0000 (15:49 +0000)
commit476528196f68f07f35d63540e67cdd5fcf2e066f
tree0eda7a946181d1977412bfff3605f5b764f4ef03
parent593217e2d9301485561e97b4f6078ea881431f4a
2006-07-05  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/28162
* fold-const.c (fold_binary): For (-A) * (-B) -> A * B
make sure to convert the operands to the correct type.

* gcc.dg/pr28162.c: New testcase.

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