diff options
| author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 23:26:59 +0000 |
|---|---|---|
| committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 23:26:59 +0000 |
| commit | 5c9198bd0e6daff5907344da970cad33a46a456a (patch) | |
| tree | 95b7cdaa4a1488e04ee4b25d2031e455b1aa2318 /gcc/tree-ssa-dom.c | |
| parent | 06ccb39d1fcd6f5edbdb94898d24f5955ef5932f (diff) | |
| download | ppe42-gcc-5c9198bd0e6daff5907344da970cad33a46a456a.tar.gz ppe42-gcc-5c9198bd0e6daff5907344da970cad33a46a456a.zip | |
* fold-const.c (constant_boolean_node): Make extern.
(make_range): Wrap long lines.
(fold_cond_expr_with_comparison): Remove unnecessary call to
pedantic_non_lvalue. Add missing calls to fold_convert.
(fold_truthop): Add missing calls to fold_convert.
(fold): Likewise.
* tree.h (constant_boolean_node): Add prototype here.
* builtins.c (expand_builtin_strncmp): Add missing calls to
fold_convert.
* tree-ssa-dom.c (record_equivalences_from_incoming_edge):
Call fold_convert and constant_boolean_node to correct types.
* tree-ssa-forwprop.c (substitute_single_use_vars): Add
missing call to fold_convert to correct types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85169 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-dom.c')
| -rw-r--r-- | gcc/tree-ssa-dom.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index e1f30d4ed56..7382d5f8875 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -1541,7 +1541,8 @@ record_equivalences_from_incoming_edge (struct dom_walk_data *walk_data, && !CASE_HIGH (match_case)) { eq_expr_value.dst = switch_cond; - eq_expr_value.src = CASE_LOW (match_case); + eq_expr_value.src = fold_convert (TREE_TYPE (switch_cond), + CASE_LOW (match_case)); } } } @@ -3489,7 +3490,7 @@ get_eq_expr_value (tree if_stmt, if (TREE_CODE (cond) == SSA_NAME) { retval.dst = cond; - retval.src = (true_arm ? integer_one_node : integer_zero_node); + retval.src = constant_boolean_node (true_arm, TREE_TYPE (cond)); return retval; } |

