diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-03-30 15:54:05 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-03-30 15:54:05 +0000 |
commit | 8f0e26718e5a9e8c2609741f6c89994040c96cf7 (patch) | |
tree | 8fc9263f7a28b554d1a353ce863bc6437db117f6 /gcc/fold-const.c | |
parent | 9664860331e02d839e4cb38e750d7027846524d8 (diff) | |
download | gcc-8f0e26718e5a9e8c2609741f6c89994040c96cf7.zip gcc-8f0e26718e5a9e8c2609741f6c89994040c96cf7.tar.gz gcc-8f0e26718e5a9e8c2609741f6c89994040c96cf7.tar.bz2 |
fold-const.c (fold_binary): Add missing conversions.
* fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
From-SVN: r133732
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index c420b79..6e5d940 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -10425,8 +10425,10 @@ fold_binary (enum tree_code code, tree type, tree op0, tree op1) { return fold_build1 (BIT_NOT_EXPR, type, build2 (BIT_AND_EXPR, type, - TREE_OPERAND (arg0, 0), - TREE_OPERAND (arg1, 0))); + fold_convert (type, + TREE_OPERAND (arg0, 0)), + fold_convert (type, + TREE_OPERAND (arg1, 0)))); } /* See if this can be simplified into a rotate first. If that |