From: Mark Mitchell Date: Sat, 12 Dec 1998 22:12:02 +0000 (+0000) Subject: global.c (record_conflicts): Don't use an array of shorts to store an array of ints. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d4c79be50f79381b6306600b304ea3182a8d63c;p=gcc.git global.c (record_conflicts): Don't use an array of shorts to store an array of ints. * global.c (record_conflicts): Don't use an array of shorts to store an array of ints. (global_conflicts): Likewise. From-SVN: r24282 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08d919c0a59..f2a101bda07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sat Dec 12 22:13:02 1998 Mark Mitchell + + * 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 * alpha.c (alpha_expand_block_move): mode_for_size expects diff --git a/gcc/global.c b/gcc/global.c index 3dd8463bc41..67201726e3c 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -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;