From 6e17f9c1fe6e97255c7885c347e7895e8bb04ecc Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak <dvorakz@suse.cz> Date: Tue, 28 Dec 2004 11:33:39 +0100 Subject: [PATCH] re PR rtl-optimization/19103 (Current CVS (2004/12/21) doesn't compile with profiledbootstrap) PR rtl-optimization/19103 * loop-iv.c (iv_number_of_iterations): Fix typo. From-SVN: r92669 --- gcc/ChangeLog | 5 +++++ gcc/loop-iv.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d23c392601d2..9a81f33249b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-12-28 Zdenek Dvorak <dvorakz@suse.cz> + + PR rtl-optimization/19103 + * loop-iv.c (iv_number_of_iterations): Fix typo. + 2004-12-28 Andreas Jaeger <aj@suse.de> * genrecog.c (compute_predicate_codes): Avoid warning. diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c index 704d51e07afe..04f53b88d3ef 100644 --- a/gcc/loop-iv.c +++ b/gcc/loop-iv.c @@ -2132,7 +2132,7 @@ iv_number_of_iterations (struct loop *loop, rtx insn, rtx condition, if (iv0.step == const0_rtx) step_val = -INTVAL (iv1.step); else - step_val = INTVAL (iv1.step); + step_val = INTVAL (iv0.step); /* Ignore loops of while (i-- < 10) type. */ if (step_val < 0) -- GitLab