From ec919c984e95e1ffa20d44d7eecfbf46c196b09f Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 18 Sep 2000 22:48:52 +0000 Subject: [PATCH] Fix for IA-64 abort compiling xaaPCache.c from XFree86 Fix for IA-64 abort compiling xaaPCache.c from XFree86 * unroll.c (final_giv_value): Pass increment through extend_value_for_giv before passing it to emit_iv_add_mult. From-SVN: r36517 --- gcc/ChangeLog | 3 +++ gcc/unroll.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da574002f5b..bc0633231bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-09-18 Jim Wilson + * unroll.c (final_giv_value): Pass increment through + extend_value_for_giv before passing it to emit_iv_add_mult. + * function.c (fixup_var_refs_1, case ZERO_EXTRACT): If we have a paradoxical subreg, then directly substitute the replacement and return. diff --git a/gcc/unroll.c b/gcc/unroll.c index 255e1039336..9d9b2eaa966 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3349,7 +3349,8 @@ final_giv_value (loop, v) /* Put the final biv value in tem. */ tem = gen_reg_rtx (v->mode); record_base_value (REGNO (tem), bl->biv->add_val, 0); - emit_iv_add_mult (increment, GEN_INT (n_iterations), + emit_iv_add_mult (extend_value_for_giv (v, increment), + GEN_INT (n_iterations), extend_value_for_giv (v, bl->initial_value), tem, insert_before);