diff options
author | YamaArashi <shadow962@live.com> | 2016-02-13 02:16:07 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-13 02:16:07 -0800 |
commit | 87926b4bcc3046ac85fabda09178e9bf50dd8381 (patch) | |
tree | 5b5ed9076e0200c36f979e0f8baaa23f4406cfd8 /gcc/unroll.c | |
parent | 56d3f75d136e839223544f0495cceb098afa1d55 (diff) |
remove use of strings.h
Diffstat (limited to 'gcc/unroll.c')
-rwxr-xr-x | gcc/unroll.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 934aa9b..32d1c13 100755 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -693,7 +693,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, map->label_map = (rtx *) alloca (max_labelno * sizeof (rtx)); local_label = (char *) alloca (max_labelno); - bzero (local_label, max_labelno); + zero_memory (local_label, max_labelno); } else map->label_map = 0; @@ -768,16 +768,16 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, to access the splittable_regs[] and addr_combined_regs[] arrays. */ splittable_regs = (rtx *) alloca (maxregnum * sizeof (rtx)); - bzero ((char *) splittable_regs, maxregnum * sizeof (rtx)); + zero_memory ((char *) splittable_regs, maxregnum * sizeof (rtx)); derived_regs = alloca (maxregnum); - bzero (derived_regs, maxregnum); + zero_memory (derived_regs, maxregnum); splittable_regs_updates = (int *) alloca (maxregnum * sizeof (int)); - bzero ((char *) splittable_regs_updates, maxregnum * sizeof (int)); + zero_memory ((char *) splittable_regs_updates, maxregnum * sizeof (int)); addr_combined_regs = (struct induction **) alloca (maxregnum * sizeof (struct induction *)); - bzero ((char *) addr_combined_regs, maxregnum * sizeof (struct induction *)); + zero_memory ((char *) addr_combined_regs, maxregnum * sizeof (struct induction *)); local_regno = (char *) alloca (maxregnum); - bzero (local_regno, maxregnum); + zero_memory (local_regno, maxregnum); /* Mark all local registers, i.e. the ones which are referenced only inside the loop. */ @@ -1048,9 +1048,9 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, emit_label_after (labels[unroll_number - i], PREV_INSN (loop_start)); - bzero ((char *) map->insn_map, max_insnno * sizeof (rtx)); - bzero ((char *) map->const_equiv_map, maxregnum * sizeof (rtx)); - bzero ((char *) map->const_age_map, + zero_memory ((char *) map->insn_map, max_insnno * sizeof (rtx)); + zero_memory ((char *) map->const_equiv_map, maxregnum * sizeof (rtx)); + zero_memory ((char *) map->const_age_map, maxregnum * sizeof (unsigned)); map->const_age = 0; @@ -1205,9 +1205,9 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, for (i = 0; i < unroll_number; i++) { - bzero ((char *) map->insn_map, max_insnno * sizeof (rtx)); - bzero ((char *) map->const_equiv_map, new_maxregnum * sizeof (rtx)); - bzero ((char *) map->const_age_map, new_maxregnum * sizeof (unsigned)); + zero_memory ((char *) map->insn_map, max_insnno * sizeof (rtx)); + zero_memory ((char *) map->const_equiv_map, new_maxregnum * sizeof (rtx)); + zero_memory ((char *) map->const_age_map, new_maxregnum * sizeof (unsigned)); map->const_age = 0; for (j = 0; j < max_labelno; j++) |