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/cse.c | |
parent | 56d3f75d136e839223544f0495cceb098afa1d55 (diff) |
remove use of strings.h
Diffstat (limited to 'gcc/cse.c')
-rwxr-xr-x | gcc/cse.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -797,11 +797,11 @@ new_basic_block () next_qty = max_reg; - bzero ((char *) reg_tick, max_reg * sizeof (int)); + zero_memory ((char *) reg_tick, max_reg * sizeof (int)); - bcopy ((char *) all_minus_one, (char *) reg_in_table, + copy_memory ((char *) all_minus_one, (char *) reg_in_table, max_reg * sizeof (int)); - bcopy ((char *) consec_ints, (char *) reg_qty, max_reg * sizeof (int)); + copy_memory ((char *) consec_ints, (char *) reg_qty, max_reg * sizeof (int)); CLEAR_HARD_REG_SET (hard_regs_in_table); /* The per-quantity values used to be initialized here, but it is @@ -817,7 +817,7 @@ new_basic_block () } } - bzero ((char *) table, sizeof table); + zero_memory ((char *) table, sizeof table); prev_insn = 0; @@ -4371,7 +4371,7 @@ simplify_plus_minus (code, mode, op0, op1) int first = 1, negate = 0, changed; int i, j; - bzero ((char *) ops, sizeof ops); + zero_memory ((char *) ops, sizeof ops); /* Set up the two operands and then expand them until nothing has been changed. If we run out of room in our array, give up; this should @@ -8584,7 +8584,7 @@ cse_main (f, nregs, after_loop, file) /* Discard all the free elements of the previous function since they are allocated in the temporarily obstack. */ - bzero ((char *) table, sizeof table); + zero_memory ((char *) table, sizeof table); free_element_chain = 0; n_elements_made = 0; @@ -8592,7 +8592,7 @@ cse_main (f, nregs, after_loop, file) max_uid = get_max_uid (); uid_cuid = (int *) alloca ((max_uid + 1) * sizeof (int)); - bzero ((char *) uid_cuid, (max_uid + 1) * sizeof (int)); + zero_memory ((char *) uid_cuid, (max_uid + 1) * sizeof (int)); /* Compute the mapping from uids to cuids. CUIDs are numbers assigned to insns, like uids, @@ -9056,7 +9056,7 @@ delete_trivially_dead_insns (insns, nreg) int in_libcall = 0, dead_libcall = 0; /* First count the number of times each register is used. */ - bzero ((char *) counts, sizeof (int) * nreg); + zero_memory ((char *) counts, sizeof (int) * nreg); for (insn = next_real_insn (insns); insn; insn = next_real_insn (insn)) count_reg_usage (insn, counts, NULL_RTX, 1); |