aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-04-17 17:42:44 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-04-17 17:42:44 -0400
commit6ac271be95e98d64ccbf78095cfb3e309fcce7c6 (patch)
tree10d7ae20db54771361a8b86cb6fba4042424c52b
parent09d2cd9b91f97444bd264af58beab7a7b52e7968 (diff)
downloadgcc-6ac271be95e98d64ccbf78095cfb3e309fcce7c6.zip
gcc-6ac271be95e98d64ccbf78095cfb3e309fcce7c6.tar.gz
gcc-6ac271be95e98d64ccbf78095cfb3e309fcce7c6.tar.bz2
(uid_block_number): Likewise.
(flow_analysis): Allocate uid_block_number and reg_basic_block as array of ints. From-SVN: r4174
-rw-r--r--gcc/flow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index d797343..5a8b447 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -138,7 +138,7 @@ static int max_uid_for_flow;
This is set up by find_basic_blocks and used there and in life_analysis,
and then freed. */
-static short *uid_block_number;
+static int *uid_block_number;
/* INSN_VOLATILE (insn) is 1 if the insn refers to anything volatile. */
@@ -168,7 +168,7 @@ static int num_scratch;
This information remains valid for the rest of the compilation
of the current function; it is used to control register allocation. */
-short *reg_basic_block;
+int *reg_basic_block;
/* Indexed by n, gives number of times (REG n) is used or set, each
weighted by its loop-depth.
@@ -364,7 +364,7 @@ flow_analysis (f, nregs, file)
basic_block_drops_in = (char *) alloca (n_basic_blocks);
basic_block_loop_depth = (short *) alloca (n_basic_blocks * sizeof (short));
uid_block_number
- = (short *) alloca ((max_uid_for_flow + 1) * sizeof (short));
+ = (int *) alloca ((max_uid_for_flow + 1) * sizeof (int));
uid_volatile = (char *) alloca (max_uid_for_flow + 1);
bzero (uid_volatile, max_uid_for_flow + 1);
@@ -1113,7 +1113,7 @@ allocate_for_life_analysis ()
reg_n_calls_crossed = (int *) oballoc (max_regno * sizeof (int));
bzero (reg_n_calls_crossed, max_regno * sizeof (int));
- reg_basic_block = (short *) oballoc (max_regno * sizeof (short));
+ reg_basic_block = (int *) oballoc (max_regno * sizeof (int));
for (i = 0; i < max_regno; i++)
reg_basic_block[i] = REG_BLOCK_UNKNOWN;