aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-04-21 17:47:13 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-04-21 17:47:13 +0000
commit84ece8efd21ed73d98de62e4bcf22b4160cd7faa (patch)
tree986170b134afaa330f5f7db7761ce3e7b9e0424a /gcc/fold-const.c
parentfc52a1446b2ad0a460a8bd207776b5a3739f269f (diff)
downloadgcc-84ece8efd21ed73d98de62e4bcf22b4160cd7faa.zip
gcc-84ece8efd21ed73d98de62e4bcf22b4160cd7faa.tar.gz
gcc-84ece8efd21ed73d98de62e4bcf22b4160cd7faa.tar.bz2
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 6d2db7b..4e8f34f 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -7857,7 +7857,7 @@ fold_unary (enum tree_code code, tree type, tree op0)
return fold_build1 (BIT_NOT_EXPR, type, fold_convert (type, tem));
}
- tem = fold_convert_const (code, type, arg0);
+ tem = fold_convert_const (code, type, op0);
return tem ? tem : NULL_TREE;
case VIEW_CONVERT_EXPR: