OSDN Git Service

* alias.c (init_alias_analysis): Clean up incompatible pointer
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Sep 1997 16:06:18 +0000 (16:06 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Sep 1997 16:06:18 +0000 (16:06 +0000)
        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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15169 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/alias.c
gcc/haifa-sched.c
gcc/regmove.c

index 0db830d..48fd0a8 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 4c2ca48..e85b388 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 b4a674e..f5a5f4e 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 639059b..1efb9ce 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];