diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-02 22:05:38 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-06-02 22:05:38 +0000 |
commit | e5f994bf31f6c458e38155ae33e1cbc71473c1e2 (patch) | |
tree | d28649d18416201742bfa6e0d658ac3243511920 /gcc/stupid.c | |
parent | 11200747001a9f731a9a66efcfa0eab44608153b (diff) | |
download | gcc-e5f994bf31f6c458e38155ae33e1cbc71473c1e2.tar.gz |
Widen some short fields to int; Use allocate_reg_info to allocate the reg_renumber array
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14142 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stupid.c')
-rw-r--r-- | gcc/stupid.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/stupid.c b/gcc/stupid.c index 72e94d609e6..396799e5da8 100644 --- a/gcc/stupid.c +++ b/gcc/stupid.c @@ -1,5 +1,5 @@ /* Dummy data flow analysis for GNU compiler in nonoptimizing mode. - Copyright (C) 1987, 1991, 1994, 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1987, 1991, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of GNU CC. @@ -179,13 +179,11 @@ stupid_life_analysis (f, nregs, file) regs_crosses_setjmp = (char *) alloca (nregs * sizeof (char)); bzero ((char *) regs_crosses_setjmp, nregs * sizeof (char)); - reg_renumber = (short *) oballoc (nregs * sizeof (short)); + /* Allocate the reg_renumber array */ + allocate_reg_info (max_regno, FALSE, TRUE); for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) reg_renumber[i] = i; - for (i = FIRST_VIRTUAL_REGISTER; i < max_regno; i++) - reg_renumber[i] = -1; - after_insn_hard_regs = (HARD_REG_SET *) alloca (max_suid * sizeof (HARD_REG_SET)); |