aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-09-07 10:22:44 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2004-09-07 10:22:44 +0000
commit5212068fdf32944f8a35909cd5e9eb8d420fbc76 (patch)
treeefd2d72434d72037608c092c5558556582089fc1 /gcc/expr.c
parent366de0ce7d916d313aba839a2802cfbc70b991cf (diff)
downloadgcc-5212068fdf32944f8a35909cd5e9eb8d420fbc76.zip
gcc-5212068fdf32944f8a35909cd5e9eb8d420fbc76.tar.gz
gcc-5212068fdf32944f8a35909cd5e9eb8d420fbc76.tar.bz2
builtins.c (fold_builtin_strchr): Use build_int_cst, not fold_convert.
* builtins.c (fold_builtin_strchr): Use build_int_cst, not fold_convert. (fold_builtin_strpbrk): Likewise. * expr.c (array_ref_low_bound): Likewise. * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1, interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise. * tree-sra.c (generate_element_zero): Likewise. * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise. * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step, add_old_iv_candidates, add_iv_candidates): Likewise. * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise. From-SVN: r87141
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 4f4a9aa..076b612 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -5514,7 +5514,7 @@ array_ref_low_bound (tree exp)
return SUBSTITUTE_PLACEHOLDER_IN_EXPR (TYPE_MIN_VALUE (domain_type), exp);
/* Otherwise, return a zero of the appropriate type. */
- return fold_convert (TREE_TYPE (TREE_OPERAND (exp, 1)), integer_zero_node);
+ return build_int_cst (TREE_TYPE (TREE_OPERAND (exp, 1)), 0);
}
/* Return a tree representing the upper bound of the array mentioned in