From 0213c30e2883be76970abee1ec7fa1d3736799ae Mon Sep 17 00:00:00 2001 From: rguenth Date: Thu, 2 Jun 2005 21:55:52 +0000 Subject: 2005-06-02 Richard Guenther * tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the correct types. * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype for all computation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100517 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-chrec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/tree-chrec.c') diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index 335bc7c6f3a..bd8bafc9762 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -293,7 +293,9 @@ chrec_fold_plus_1 (enum tree_code code, && size < PARAM_VALUE (PARAM_SCEV_MAX_EXPR_SIZE)) return build2 (code, type, op0, op1); else if (size < PARAM_VALUE (PARAM_SCEV_MAX_EXPR_SIZE)) - return fold_build2 (code, type, op0, op1); + return fold_build2 (code, type, + fold_convert (type, op0), + fold_convert (type, op1)); else return chrec_dont_know; } -- cgit v1.2.1