summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/loop-doloop.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8055ac68be1..341b9feb9ad 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-08 Michael Matz <matz@suse.de>
+
+ * loop-doloop.c (doloop_optimize): Extend count.
+
2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
diff --git a/gcc/loop-doloop.c b/gcc/loop-doloop.c
index 1e56eb5cebe..965e2e3edd8 100644
--- a/gcc/loop-doloop.c
+++ b/gcc/loop-doloop.c
@@ -511,7 +511,7 @@ doloop_optimize (struct loop *loop)
if (word_mode_size > GET_MODE_BITSIZE (mode))
{
count = simplify_gen_unary (ZERO_EXTEND, word_mode,
- iterations, mode);
+ count, mode);
iterations = simplify_gen_unary (ZERO_EXTEND, word_mode,
iterations, mode);
iterations_max = simplify_gen_unary (ZERO_EXTEND, word_mode,