diff options
| author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-18 00:16:59 +0000 |
|---|---|---|
| committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-07-18 00:16:59 +0000 |
| commit | 4ff7381280329eb3d6559dbe3be4e2f5fb000efa (patch) | |
| tree | 92bb4041e84226a9e3656c6ff93dbb8173193c02 | |
| parent | 7234ad38d71dec993257ac7288fe2754eff75504 (diff) | |
| download | ppe42-gcc-4ff7381280329eb3d6559dbe3be4e2f5fb000efa.tar.gz ppe42-gcc-4ff7381280329eb3d6559dbe3be4e2f5fb000efa.zip | |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35109 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | 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 <geoffk@cygnus.com> + * 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 <rth@cygnus.com> 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 |

