diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-07-25 23:26:59 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-07-25 23:26:59 +0000 |
commit | e9ea8bd58e47536fc44b61bf657c20fb22c747ad (patch) | |
tree | 95b7cdaa4a1488e04ee4b25d2031e455b1aa2318 /gcc/builtins.c | |
parent | 70502b2caf55e0a198048a5beac5f08850af3916 (diff) | |
download | gcc-e9ea8bd58e47536fc44b61bf657c20fb22c747ad.zip gcc-e9ea8bd58e47536fc44b61bf657c20fb22c747ad.tar.gz gcc-e9ea8bd58e47536fc44b61bf657c20fb22c747ad.tar.bz2 |
fold-const.c (constant_boolean_node): Make extern.
* 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.
From-SVN: r85169
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index 2d3d440..bb32f12 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -3830,7 +3830,8 @@ expand_builtin_strncmp (tree exp, rtx target, enum machine_mode mode) return 0; /* The actual new length parameter is MIN(len,arg3). */ - len = fold (build2 (MIN_EXPR, TREE_TYPE (len), len, arg3)); + len = fold (build2 (MIN_EXPR, TREE_TYPE (len), len, + fold_convert (TREE_TYPE (len), arg3))); /* If we don't have POINTER_TYPE, call the function. */ if (arg1_align == 0 || arg2_align == 0) |