aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-17 17:43:26 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-17 17:43:26 -0400
commit568356af7b6ce5d567dde9fe765103d985b70b5b (patch)
tree8d115203cda95f373db00d0416e48da0dba926ed
parent6ac271be95e98d64ccbf78095cfb3e309fcce7c6 (diff)
downloadgcc-568356af7b6ce5d567dde9fe765103d985b70b5b.zip
gcc-568356af7b6ce5d567dde9fe765103d985b70b5b.tar.gz
gcc-568356af7b6ce5d567dde9fe765103d985b70b5b.tar.bz2
(reg_last_set_label, reg_last_set_table_tick, label_tick): Use int,
not short, for counting labels. (combine_instructions): Allocate these vars as arrays of ints. From-SVN: r4175
-rw-r--r--gcc/combine.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 6a46a77..80eeee0 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -237,12 +237,12 @@ static rtx *reg_last_set_value;
/* Record the value of label_tick when the value for register n is placed in
reg_last_set_value[n]. */
-static short *reg_last_set_label;
+static int *reg_last_set_label;
/* Record the value of label_tick when an expression involving register n
is placed in reg_last_set_value. */
-static short *reg_last_set_table_tick;
+static int *reg_last_set_table_tick;
/* Set non-zero if references to register n in expressions should not be
used. */
@@ -251,7 +251,7 @@ static char *reg_last_set_invalid;
/* Incremented for each label. */
-static short label_tick;
+static int label_tick;
/* Some registers that are set more than once and used in more than one
basic block are nevertheless always set in similar ways. For example,
@@ -424,8 +424,8 @@ combine_instructions (f, nregs)
reg_last_death = (rtx *) alloca (nregs * sizeof (rtx));
reg_last_set = (rtx *) alloca (nregs * sizeof (rtx));
reg_last_set_value = (rtx *) alloca (nregs * sizeof (rtx));
- reg_last_set_table_tick = (short *) alloca (nregs * sizeof (short));
- reg_last_set_label = (short *) alloca (nregs * sizeof (short));
+ reg_last_set_table_tick = (int *) alloca (nregs * sizeof (int));
+ reg_last_set_label = (int *) alloca (nregs * sizeof (int));
reg_last_set_invalid = (char *) alloca (nregs * sizeof (char));
reg_last_set_mode
= (enum machine_mode *) alloca (nregs * sizeof (enum machine_mode));
@@ -441,8 +441,8 @@ combine_instructions (f, nregs)
bzero (reg_last_death, nregs * sizeof (rtx));
bzero (reg_last_set, nregs * sizeof (rtx));
bzero (reg_last_set_value, nregs * sizeof (rtx));
- bzero (reg_last_set_table_tick, nregs * sizeof (short));
- bzero (reg_last_set_label, nregs * sizeof (short));
+ bzero (reg_last_set_table_tick, nregs * sizeof (int));
+ bzero (reg_last_set_label, nregs * sizeof (int));
bzero (reg_last_set_invalid, nregs * sizeof (char));
bzero (reg_last_set_mode, nregs * sizeof (enum machine_mode));
bzero (reg_last_set_nonzero_bits, nregs * sizeof (HOST_WIDE_INT));
@@ -508,8 +508,8 @@ combine_instructions (f, nregs)
bzero (reg_last_death, nregs * sizeof (rtx));
bzero (reg_last_set, nregs * sizeof (rtx));
bzero (reg_last_set_value, nregs * sizeof (rtx));
- bzero (reg_last_set_table_tick, nregs * sizeof (short));
- bzero (reg_last_set_label, nregs * sizeof (short));
+ bzero (reg_last_set_table_tick, nregs * sizeof (int));
+ bzero (reg_last_set_label, nregs * sizeof (int));
bzero (reg_last_set_invalid, nregs * sizeof (char));
setup_incoming_promotions ();