diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-11-18 14:52:29 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-11-18 14:52:29 +0000 |
commit | 386b1f1f416c9da018d47ccd371494b3a3a32870 (patch) | |
tree | d16c65f5e22e1df0f38b0740834821a33ca730ff /gcc/tree-switch-conversion.c | |
parent | ae7e9dddb860567a40d7c84736522242236a3355 (diff) | |
download | gcc-386b1f1f416c9da018d47ccd371494b3a3a32870.zip gcc-386b1f1f416c9da018d47ccd371494b3a3a32870.tar.gz gcc-386b1f1f416c9da018d47ccd371494b3a3a32870.tar.bz2 |
cuintp.c (UI_From_gnu): Use tree_to_shwi rather than tree_low_cst.
gcc/ada/
* gcc-interface/cuintp.c (UI_From_gnu): Use tree_to_shwi rather than
tree_low_cst.
gcc/c-family/
* c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
tree_low_cst.
(complete_array_type): Update comment to refer to tree_to_[su]hwi
rather than tree_low_cst.
gcc/c/
* c-decl.c (grokdeclarator): Update comment to refer to
tree_to_[su]hwi rather than tree_low_cst.
gcc/cp/
* decl.c (reshape_init_array_1): Use tree_to_uhwi rather than
tree_low_cst.
(grokdeclarator): Update comment to refer to tree_to_[su]hwi rather
than tree_low_cst.
gcc/
* expr.h: Update comments to refer to tree_to_[su]hwi rather
than tree_low_cst.
* fold-const.c (fold_binary_loc): Likewise.
* expr.c (store_constructor): Use tree_to_uhwi rather than
tree_low_cst.
* ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
* stmt.c (emit_case_dispatch_table): Likewise.
* tree-switch-conversion.c (emit_case_bit_tests): Likewise.
From-SVN: r204962
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r-- | gcc/tree-switch-conversion.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index 40e5067..a4340a4 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -354,15 +354,13 @@ emit_case_bit_tests (gimple swtch, tree index_expr, else test[k].bits++; - lo = tree_low_cst (int_const_binop (MINUS_EXPR, - CASE_LOW (cs), minval), - 1); + lo = tree_to_uhwi (int_const_binop (MINUS_EXPR, + CASE_LOW (cs), minval)); if (CASE_HIGH (cs) == NULL_TREE) hi = lo; else - hi = tree_low_cst (int_const_binop (MINUS_EXPR, - CASE_HIGH (cs), minval), - 1); + hi = tree_to_uhwi (int_const_binop (MINUS_EXPR, + CASE_HIGH (cs), minval)); for (j = lo; j <= hi; j++) if (j >= HOST_BITS_PER_WIDE_INT) |