alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero.
authorWeiwen Liu <liu@hepunix.physics.yale.edu>
Mon, 8 Sep 1997 16:06:18 +0000 (16:06 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 8 Sep 1997 16:06:18 +0000 (10:06 -0600)
        * 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
gcc/alias.c
gcc/haifa-sched.c
gcc/regmove.c

index 0db830df543ba5f7f7ffbb907970e0d636f122af..48fd0a83c5356824994236cf2f95631c51f922c5 100644 (file)
@@ -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.
index 4c2ca48b3eb94916c03328bdc20c819947414c37..e85b388ef874ac75b682d0bf64202acbff2aba11 100644 (file)
@@ -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.
index b4a674e977e8af6103bc6876b1e40ab3ebde7117..f5a5f4e84d7cef9809d40a07c6bd5c28ffe6f683 100644 (file)
@@ -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");
index 639059b3686702ba5698b4fc4bb82c7e9098b2be..1efb9ceed89f3f5d43b6fc0aef0705ec53c2d359 100644 (file)
@@ -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];