2008-02-27 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 13:17:17 +0000 (13:17 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Feb 2008 13:17:17 +0000 (13:17 +0000)
commitc2f5179d17597cca71d02aa50e07184221165502
tree31e4bf7768f1626b8eaf53fa5ed4d19b28cb9f34
parent8d7e425c24478638c25244728691b63588bb5c4c
2008-02-27  Richard Guenther  <rguenther@suse.de>

PR middle-end/25290
* fold-const.c (fold_unary): Return the correct argument,
converted to the result type.

* gcc.c-torture/execute/pr35390.c: New testcase.

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