diff options
author | YamaArashi <shadow962@live.com> | 2016-04-30 04:57:33 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-30 04:57:33 -0700 |
commit | d1cb3194bb20a44eecafe4186cf4e368f2a4d5b8 (patch) | |
tree | d0f27aa47b8f124d7e92b2e2747cc8c05da676b0 /gcc/unroll.c | |
parent | 0dfd357a5116b3d76fbaa9bcdd16902c28f60d2b (diff) |
build libgcc with older version of compiler and add install script
Diffstat (limited to 'gcc/unroll.c')
-rwxr-xr-x | gcc/unroll.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 5ffb7d1..2017fdf 100755 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -238,7 +238,9 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, struct inline_remap *map; char *local_label; char *local_regno; +#ifndef OLD_COMPILER int max_local_regnum; +#endif int maxregnum; int new_maxregnum; rtx exit_label = 0; @@ -756,8 +758,10 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, /* The preconditioning code may allocate two new pseudo registers. */ maxregnum = max_reg_num (); +#ifndef OLD_COMPILER /* local_regno is only valid for regnos < max_local_regnum. */ max_local_regnum = maxregnum; +#endif /* Allocate and zero out the splittable_regs and addr_combined_regs arrays. These must be zeroed here because they will be used if @@ -1058,7 +1062,11 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, if (local_label[j]) set_label_in_map (map, j, gen_label_rtx ()); +#ifndef OLD_COMPILER for (j = FIRST_PSEUDO_REGISTER; j < max_local_regnum; j++) +#else + for (j = FIRST_PSEUDO_REGISTER; j < maxregnum; j++) +#endif if (local_regno[j]) { map->reg_map[j] = gen_reg_rtx (GET_MODE (regno_reg_rtx[j])); @@ -1214,7 +1222,11 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, if (local_label[j]) set_label_in_map (map, j, gen_label_rtx ()); +#ifndef OLD_COMPILER for (j = FIRST_PSEUDO_REGISTER; j < max_local_regnum; j++) +#else + for (j = FIRST_PSEUDO_REGISTER; j < maxregnum; j++) +#endif if (local_regno[j]) { map->reg_map[j] = gen_reg_rtx (GET_MODE (regno_reg_rtx[j])); |