From 52b7724b84b30caf28859178911271d03a1f8037 Mon Sep 17 00:00:00 2001 From: Weiwen Liu Date: Mon, 8 Sep 1997 16:06:18 +0000 Subject: [PATCH] alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero. * alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero. * regmove.c (regmove_optimize): Ditto. * haifa-sched.c (find_rgns): Ditto. * haifa-sched.c (print_value): Clean up ptr->int cast warnings. From-SVN: r15169 --- gcc/ChangeLog | 10 ++++++++++ gcc/alias.c | 2 +- gcc/haifa-sched.c | 6 +++--- gcc/regmove.c | 4 ++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0db830df543..48fd0a83c53 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +Sun Sep 7 23:57:50 1997 Weiwen Liu + + * alias.c (init_alias_analysis): Clean up incompatible pointer + type warning in bzero. + * regmove.c (regmove_optimize): Ditto. + * haifa-sched.c (find_rgns): Ditto. + + * haifa-sched.c (print_value): Clean up ptr->int cast + warnings. + Sun Sep 7 23:18:32 1997 Fred Fish * INSTALL: Change 'amigados' to 'amigaos' to match current usage. diff --git a/gcc/alias.c b/gcc/alias.c index 4c2ca48b3eb..e85b388ef87 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -925,7 +925,7 @@ init_alias_analysis () reg_base_value_size = maxreg * 2; reg_base_value = (rtx *)oballoc (reg_base_value_size * sizeof (rtx)); reg_seen = (char *)alloca (reg_base_value_size); - bzero (reg_base_value, reg_base_value_size * sizeof (rtx)); + bzero ((char *) reg_base_value, reg_base_value_size * sizeof (rtx)); bzero (reg_seen, reg_base_value_size); /* Mark all hard registers which may contain an address. diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index b4a674e977e..f5a5f4e84d7 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -1628,7 +1628,7 @@ find_rgns () /* function's inner arrays allocation and initialization */ max_hdr = (int *) alloca (n_basic_blocks * sizeof (int)); dfs_nr = (int *) alloca (n_basic_blocks * sizeof (int)); - bzero ((int *) dfs_nr, n_basic_blocks * sizeof (int)); + bzero ((char *) dfs_nr, n_basic_blocks * sizeof (int)); stack = (int *) alloca (nr_edges * sizeof (int)); queue = (int *) alloca (n_basic_blocks * sizeof (int)); @@ -6089,11 +6089,11 @@ print_value (buf, x, verbose) strcpy (t, "fr"); else strcpy (t, "r"); - sprintf (buf, "%s%d", t, (int) XEXP (x, 0)); + sprintf (buf, "%s%d", t, !! XEXP (x, 0)); break; case SUBREG: print_value (t, XEXP (x, 0), verbose); - sprintf (buf, "%s#%d", t, (int) XEXP (x, 1)); + sprintf (buf, "%s#%d", t, !! XEXP (x, 1)); break; case SCRATCH: sprintf (buf, "scratch"); diff --git a/gcc/regmove.c b/gcc/regmove.c index 639059b3686..1efb9ceed89 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -152,7 +152,7 @@ regmove_optimize (f, nregs, regmove_dump_file) /* Must initialize this before the loop, because the code for the commutative case may set matches for operands other than the current one. */ - bzero (matches, sizeof (matches)); + bzero ((char *)matches, sizeof (matches)); for (operand_number = 0; operand_number < insn_n_operands[insn_code_number]; @@ -714,7 +714,7 @@ regmove_optimize (f, nregs, regmove_dump_file) /* Must initialize this before the loop, because the code for the commutative case may set matches for operands other than the current one. */ - bzero (matches, sizeof (matches)); + bzero ((char *) matches, sizeof (matches)); for (operand_number = 0; operand_number < insn_n_operands[insn_code_number]; -- 2.30.2