aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/alias.c2
-rw-r--r--gcc/haifa-sched.c6
-rw-r--r--gcc/regmove.c4
4 files changed, 16 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0db830d..48fd0a8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,13 @@
+Sun Sep 7 23:57:50 1997 Weiwen Liu <liu@hepunix.physics.yale.edu>
+
+ * 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 <fnf@ninemoons.com>
* INSTALL: Change 'amigados' to 'amigaos' to match current usage.
diff --git a/gcc/alias.c b/gcc/alias.c
index 4c2ca48..e85b388 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 b4a674e..f5a5f4e 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 639059b..1efb9ce 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];