diff options
author | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-18 12:06:08 +0000 |
---|---|---|
committer | phython <phython@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-18 12:06:08 +0000 |
commit | 37e8021c4fa1bb1674ca6aab1fd9e2f6618d0709 (patch) | |
tree | fa3567697268e4557c529527a229d4ed643ebfab /gcc/stmt.c | |
parent | f5f59ea483b64511dc81091a14dbcfd727a3bb06 (diff) | |
download | gcc-37e8021c4fa1bb1674ca6aab1fd9e2f6618d0709.tar.gz |
2005-02-18 James A. Morrison <phython@gcc.gnu.org>
* stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
(estimate_case_costs): Don't call convert.
* expmed.c (expand_shift): Likewise.
(make_tree): Call fold_convert instead of convert.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95224 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 5a9d5277ea5..a438532b11b 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2239,8 +2239,8 @@ emit_case_bit_tests (tree index_type, tree index_expr, tree minval, qsort (test, count, sizeof(*test), case_bit_test_cmp); index_expr = fold (build2 (MINUS_EXPR, index_type, - convert (index_type, index_expr), - convert (index_type, minval))); + fold_convert (index_type, index_expr), + fold_convert (index_type, minval))); index = expand_expr (index_expr, NULL_RTX, VOIDmode, 0); do_pending_stack_adjust (); @@ -2612,8 +2612,7 @@ static int estimate_case_costs (case_node_ptr node) { tree min_ascii = integer_minus_one_node; - tree max_ascii = convert (TREE_TYPE (node->high), - build_int_cst (NULL_TREE, 127)); + tree max_ascii = build_int_cst (TREE_TYPE (node->high), 127); case_node_ptr n; int i; |