diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-06-14 18:19:28 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-06-14 18:19:28 -0400 |
commit | 4c9a05bc5560ebb1144228bccb5312871a3089f7 (patch) | |
tree | a7bb6982dd7325e985889dd58de3ba6d06851867 /gcc/regclass.c | |
parent | de953b38a3adb0580dd8caf88991fc78226b1f4e (diff) | |
download | gcc-4c9a05bc5560ebb1144228bccb5312871a3089f7.zip gcc-4c9a05bc5560ebb1144228bccb5312871a3089f7.tar.gz gcc-4c9a05bc5560ebb1144228bccb5312871a3089f7.tar.bz2 |
Cast pointer operands to bzero, bcopy, and bcmp to (char *).
From-SVN: r7472
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index bef30ab..d4636d5 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -219,7 +219,7 @@ init_reg_sets () /* Compute number of hard regs in each class. */ - bzero (reg_class_size, sizeof reg_class_size); + bzero ((char *) reg_class_size, sizeof reg_class_size); for (i = 0; i < N_REG_CLASSES; i++) for (j = 0; j < FIRST_PSEUDO_REGISTER; j++) if (TEST_HARD_REG_BIT (reg_class_contents[i], j)) @@ -702,7 +702,7 @@ regclass (f, nregs) { /* Zero out our accumulation of the cost of each class for each reg. */ - bzero (costs, nregs * sizeof (struct costs)); + bzero ((char *) costs, nregs * sizeof (struct costs)); #ifdef FORBIDDEN_INC_DEC_CLASSES bzero (in_inc_dec, nregs); @@ -1662,10 +1662,11 @@ reg_scan (f, nregs, repeat) = (short *) oballoc (highest_regno_in_uid_map * sizeof (short)); } - bzero (regno_first_uid, highest_regno_in_uid_map * sizeof (int)); - bzero (regno_last_uid, highest_regno_in_uid_map * sizeof (int)); - bzero (regno_last_note_uid, highest_regno_in_uid_map * sizeof (int)); - bzero (reg_n_sets, highest_regno_in_uid_map * sizeof (short)); + bzero ((char *) regno_first_uid, highest_regno_in_uid_map * sizeof (int)); + bzero ((char *) regno_last_uid, highest_regno_in_uid_map * sizeof (int)); + bzero ((char *) regno_last_note_uid, + highest_regno_in_uid_map * sizeof (int)); + bzero ((char *) reg_n_sets, highest_regno_in_uid_map * sizeof (short)); max_parallel = 3; |