diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-02 22:05:38 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-02 22:05:38 +0000 |
commit | 39379e67c7d1f9f52e9531c815a79b24b649afe6 (patch) | |
tree | d28649d18416201742bfa6e0d658ac3243511920 /gcc/local-alloc.c | |
parent | 2808652ac8344bb1c2c6d4a48578fd3fd7ec1d01 (diff) | |
download | gcc-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/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 8b36f5f..3603e53 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -453,9 +453,8 @@ local_alloc () reg_offset = (char *) alloca (max_regno * sizeof (char)); reg_next_in_qty = (int *) alloca (max_regno * sizeof (int)); - reg_renumber = (short *) oballoc (max_regno * sizeof (short)); - for (i = 0; i < max_regno; i++) - reg_renumber[i] = -1; + /* Allocate the reg_renumber array */ + allocate_reg_info (max_regno, FALSE, TRUE); /* Determine which pseudo-registers can be allocated by local-alloc. In general, these are the registers used only in a single block and |