re PR tree-optimization/25290 (PHI-OPT could be rewritten so that is uses fold)
authorRichard Guenther <rguenther@suse.de>
Wed, 27 Feb 2008 13:17:17 +0000 (13:17 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 27 Feb 2008 13:17:17 +0000 (13:17 +0000)
commit7fb52af2ec381cc0f02219f0221042786c1f2cbd
tree31e4bf7768f1626b8eaf53fa5ed4d19b28cb9f34
parent47d430229389f7c10cdd18317192eb448e2ed989
re PR tree-optimization/25290 (PHI-OPT could be rewritten so that is uses fold)

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.

From-SVN: r132710
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr35390.c [new file with mode: 0644]