From 1815bfc25fbf311268c47ad1b19b1c0bbef7922d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 17 Apr 1993 17:44:50 -0400 Subject: [PATCH] (block_number, BLOCK_NUM, reg_to_stack): Use ints, not shorts to count blocks. From-SVN: r4177 --- gcc/reg-stack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index df636056100..cde0ca30e44 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -216,7 +216,7 @@ static HARD_REG_SET *block_out_reg_set; later, but only to look up an insn that is the head or tail of some block. life_analysis and the stack register conversion process can add insns within a block. */ -static short *block_number; +static int *block_number; /* This is the register file for all register after conversion */ static rtx FP_mode_reg[FIRST_PSEUDO_REGISTER][(int) MAX_MACHINE_MODE]; @@ -226,7 +226,7 @@ static rtx FP_mode_reg[FIRST_PSEUDO_REGISTER][(int) MAX_MACHINE_MODE]; #define BLOCK_NUM(INSN) \ (((INSN_UID (INSN) > max_uid) \ - ? (short *)(abort() , 0) \ + ? (int *)(abort() , 0) \ : block_number)[INSN_UID (INSN)]) extern rtx gen_jump (); @@ -366,7 +366,7 @@ reg_to_stack (first, file) bzero (block_stack_in, blocks * sizeof (struct stack_def)); bzero (block_out_reg_set, blocks * sizeof (HARD_REG_SET)); - block_number = (short *) alloca ((max_uid + 1) * sizeof (short)); + block_number = (int *) alloca ((max_uid + 1) * sizeof (int)); find_blocks (first); stack_reg_life_analysis (first); -- 2.30.2