From 5b1a6de4de1d2f82e9ea03218ea07bc6a3d18c7b Mon Sep 17 00:00:00 2001 From: Geoff Keating Date: Tue, 18 Jul 2000 00:16:59 +0000 Subject: [PATCH] unroll.c (copy_loop_body): Fix one instance of using host arithmetic on the target... * unroll.c (copy_loop_body): Fix one instance of using host arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit cross-compile. From-SVN: r35109 --- gcc/ChangeLog | 4 ++++ gcc/unroll.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d8f88a2509..8597b35b447 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2000-07-17 Geoffrey Keating + * unroll.c (copy_loop_body): Fix one instance of using host + arithmetic on the target; fixes loop-4 on a 32-bit -> 64-bit + cross-compile. + * tlink.c (scan_linker_output): Tweak for output of AIX ld. 2000-07-17 Richard Henderson diff --git a/gcc/unroll.c b/gcc/unroll.c index f8dfc034b5a..3197053aafe 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1940,8 +1940,9 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, #endif splittable_regs[regno] - = GEN_INT (INTVAL (giv_inc) - + INTVAL (splittable_regs[src_regno])); + = simplify_gen_binary (PLUS, GET_MODE (giv_src_reg), + giv_inc, + splittable_regs[src_regno]); giv_inc = splittable_regs[regno]; /* Now split the induction variable by changing the dest