Commit 5ff489f1 by James A. Morrison

tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't call fold_convert.

2005-02-18  James A. Morrison  <phython@gcc.gnu.org>

        * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
        call fold_convert.

From-SVN: r95260
parent e207dbea
2005-02-18 James A. Morrison <phython@gcc.gnu.org>
* tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
call fold_convert.
2005-02-18 James E. Wilson <wilson@specifixinc.com>
* doc/invoke.texi (IA-64 Options): Delete -mb-step.
......
......@@ -1285,9 +1285,8 @@ widen_bitfield (tree val, tree field, tree var)
for (i = 0, mask = 0; i < field_size; i++)
mask |= ((HOST_WIDE_INT) 1) << i;
wide_val = build (BIT_AND_EXPR, TREE_TYPE (var), val,
fold_convert (TREE_TYPE (var),
build_int_cst (NULL_TREE, mask)));
wide_val = build2 (BIT_AND_EXPR, TREE_TYPE (var), val,
build_int_cst (TREE_TYPE (var), mask));
}
else
{
......@@ -1297,9 +1296,8 @@ widen_bitfield (tree val, tree field, tree var)
for (i = 0, mask = 0; i < (var_size - field_size); i++)
mask |= ((HOST_WIDE_INT) 1) << (var_size - i - 1);
wide_val = build (BIT_IOR_EXPR, TREE_TYPE (var), val,
fold_convert (TREE_TYPE (var),
build_int_cst (NULL_TREE, mask)));
wide_val = build2 (BIT_IOR_EXPR, TREE_TYPE (var), val,
build_int_cst (TREE_TYPE (var), mask));
}
return fold (wide_val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment