aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2003-07-04 16:00:19 -0600
committerJeff Law <law@gcc.gnu.org>2003-07-04 16:00:19 -0600
commit60cd4daea2a58e4be6f9c91cbca66f63a033182f (patch)
tree3a9bd21e507ddfde6621f5d3a0295642f5e56dd1 /gcc/fold-const.c
parent5e14ae7e269c0ae1206b62237f7b6cbdd68f6fec (diff)
downloadgcc-60cd4daea2a58e4be6f9c91cbca66f63a033182f.zip
gcc-60cd4daea2a58e4be6f9c91cbca66f63a033182f.tar.gz
gcc-60cd4daea2a58e4be6f9c91cbca66f63a033182f.tar.bz2
expr.c (do_store_flag): Pass in the correct result type when calling fold_single_bit_test.
* expr.c (do_store_flag): Pass in the correct result type when calling fold_single_bit_test. * fold-const.c (fold_single_bit_test): Use result_type for the result when folding a sign bit test. From-SVN: r68940
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 0524e1d..64a30f4 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -4825,7 +4825,7 @@ fold_single_bit_test (code, arg0, arg1, result_type)
if (arg00 != NULL_TREE)
{
tree stype = (*lang_hooks.types.signed_type) (TREE_TYPE (arg00));
- return fold (build (code == EQ_EXPR ? GE_EXPR : LT_EXPR, type,
+ return fold (build (code == EQ_EXPR ? GE_EXPR : LT_EXPR, result_type,
convert (stype, arg00),
convert (stype, integer_zero_node)));
}