]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/31136 (FRE ignores bit-field truncation (C and C++ front...
authorRichard Guenther <rguenther@suse.de>
Sat, 21 Apr 2007 17:47:13 +0000 (17:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 21 Apr 2007 17:47:13 +0000 (17:47 +0000)
commit84ece8efd21ed73d98de62e4bcf22b4160cd7faa
tree986170b134afaa330f5f7db7761ce3e7b9e0424a
parentfc52a1446b2ad0a460a8bd207776b5a3739f269f
re PR tree-optimization/31136 (FRE ignores bit-field truncation (C and C++ front-end don't produce bit-field truncation)

2007-04-21  Richard Guenther  <rguenther@suse.de>

PR middle-end/31136
* fold-const.c (fold_unary): Call fold_convert_const on the
original tree.

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

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