global.c (record_conflicts): Don't use an array of shorts to store an array of ints.
authorMark Mitchell <mark@markmitchell.com>
Sat, 12 Dec 1998 22:12:02 +0000 (22:12 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 12 Dec 1998 22:12:02 +0000 (22:12 +0000)
* global.c (record_conflicts): Don't use an array of shorts to
        store an array of ints.
(global_conflicts): Likewise.

From-SVN: r24282

gcc/ChangeLog
gcc/global.c

index 08d919c0a59442417e6f1979781b8f270656c65d..f2a101bda07dcbbe97657cb87ba0431c1bb4a7dc 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec 12 22:13:02 1998  Mark Mitchell  <mark@markmitchell.com>
+
+       * global.c (record_conflicts): Don't use an array of shorts to
+        store an array of ints.
+       (global_conflicts): Likewise.
+
 Sat Dec 12 16:49:24 1998  Richard Henderson  <rth@cygnus.com>
 
        * alpha.c (alpha_expand_block_move): mode_for_size expects
index 3dd8463bc4192d865dbad3c5cf68a693a71c21ce..67201726e3cee1f1804d91a7779b41c3cfcaa6ba 100644 (file)
@@ -261,7 +261,7 @@ static void expand_preferences      PROTO((void));
 static void prune_preferences  PROTO((void));
 static void find_reg           PROTO((int, HARD_REG_SET, int, int, int));
 static void record_one_conflict PROTO((int));
-static void record_conflicts   PROTO((short *, int));
+static void record_conflicts   PROTO((int *, int));
 static void mark_reg_store     PROTO((rtx, rtx));
 static void mark_reg_clobber   PROTO((rtx, rtx));
 static void mark_reg_conflicts PROTO((rtx));
@@ -623,12 +623,12 @@ global_conflicts ()
 {
   register int b, i;
   register rtx insn;
-  short *block_start_allocnos;
+  int *block_start_allocnos;
 
   /* Make a vector that mark_reg_{store,clobber} will store in.  */
   regs_set = (rtx *) alloca (max_parallel * sizeof (rtx) * 2);
 
-  block_start_allocnos = (short *) alloca (max_allocno * sizeof (short));
+  block_start_allocnos = (int *) alloca (max_allocno * sizeof (int));
 
   for (b = 0; b < n_basic_blocks; b++)
     {
@@ -1291,7 +1291,7 @@ record_one_conflict (regno)
 
 static void
 record_conflicts (allocno_vec, len)
-     register short *allocno_vec;
+     register int *allocno_vec;
      register int len;
 {
   register int allocno;