From eeb74f9f363aad87d2db46e1d0657e9b45bba8c2 Mon Sep 17 00:00:00 2001 From: amylaar Date: Sat, 23 Jan 2010 12:21:15 +0000 Subject: [PATCH 1/1] * tree-loop-distribution.c (distribute_loop): Fix declaration and initialization of variable res to agree with return type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156190 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-loop-distribution.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3c761a2126b..d15dc7030fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-01-23 Joern Rennecke + + * tree-loop-distribution.c (distribute_loop): Fix declaration and + initialization of variable res to agree with return type. + 2010-01-22 Steve Ellcey * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency. diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index ea3005e2531..13ac7ea584a 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -1120,7 +1120,7 @@ ldist_gen (struct loop *loop, struct graph *rdg, static int distribute_loop (struct loop *loop, VEC (gimple, heap) *stmts) { - bool res = false; + int res = 0; struct graph *rdg; gimple s; unsigned i; -- 2.11.0