aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched.c
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1997-06-02 22:05:38 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1997-06-02 22:05:38 +0000
commit39379e67c7d1f9f52e9531c815a79b24b649afe6 (patch)
treed28649d18416201742bfa6e0d658ac3243511920 /gcc/sched.c
parent2808652ac8344bb1c2c6d4a48578fd3fd7ec1d01 (diff)
downloadgcc-39379e67c7d1f9f52e9531c815a79b24b649afe6.zip
gcc-39379e67c7d1f9f52e9531c815a79b24b649afe6.tar.gz
gcc-39379e67c7d1f9f52e9531c815a79b24b649afe6.tar.bz2
Widen some short fields to int; Use allocate_reg_info to allocate the reg_renumber array
From-SVN: r14142
Diffstat (limited to 'gcc/sched.c')
-rw-r--r--gcc/sched.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/sched.c b/gcc/sched.c
index ae873fa..2627968 100644
--- a/gcc/sched.c
+++ b/gcc/sched.c
@@ -135,7 +135,6 @@ Boston, MA 02111-1307, USA. */
Values of these arrays are copied at the end of this pass into the
arrays set up by flow analysis. */
-static short *sched_reg_n_deaths;
static int *sched_reg_n_calls_crossed;
static int *sched_reg_live_length;
@@ -290,8 +289,10 @@ static int *insn_tick;
struct sometimes
{
- short offset; short bit;
- short live_length; short calls_crossed;
+ int offset;
+ int bit;
+ int live_length;
+ int calls_crossed;
};
/* Forward declarations. */
@@ -4872,20 +4873,16 @@ schedule_insns (dump_file)
if (reload_completed == 0)
{
- sched_reg_n_deaths = (short *) alloca (max_regno * sizeof (short));
sched_reg_n_calls_crossed = (int *) alloca (max_regno * sizeof (int));
sched_reg_live_length = (int *) alloca (max_regno * sizeof (int));
bb_dead_regs = (regset) alloca (regset_bytes);
bb_live_regs = (regset) alloca (regset_bytes);
bzero ((char *) sched_reg_n_calls_crossed, max_regno * sizeof (int));
bzero ((char *) sched_reg_live_length, max_regno * sizeof (int));
- for (i = 0; i < max_regno; i++)
- sched_reg_n_deaths[i] = REG_N_DEATHS (i);
init_alias_analysis ();
}
else
{
- sched_reg_n_deaths = 0;
sched_reg_n_calls_crossed = 0;
sched_reg_live_length = 0;
bb_dead_regs = 0;