OSDN Git Service

2006-05-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 May 2006 15:57:36 +0000 (15:57 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 27 May 2006 15:57:36 +0000 (15:57 +0000)
commit735eed27193733ecf4b433ee2ff42020b3acc8fd
tree5a69262c3b046bdf7d18dfb4631164564a727268
parent45d9d23a904da3d6ab90e75166cb959bc6d47293
2006-05-27  Richard Guenther  <rguenther@suse.de>

PR middle-end/27773
* fold-const.c (fold_plusminus_mult_expr): Use fold_convert
to produce a constant of value 1 of generic type.

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

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