diff options
author | Richard Stallman <rms@gnu.org> | 1992-06-24 03:01:33 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-06-24 03:01:33 +0000 |
commit | 051e5bbf6ba91f419b6d3ff6a3a75e17dd2506dd (patch) | |
tree | 7a5defa0aab752a9541304d636e8f8c549561dbc | |
parent | 819817b9ff2718ba2786f758c6a69639d101948e (diff) | |
download | gcc-051e5bbf6ba91f419b6d3ff6a3a75e17dd2506dd.zip gcc-051e5bbf6ba91f419b6d3ff6a3a75e17dd2506dd.tar.gz gcc-051e5bbf6ba91f419b6d3ff6a3a75e17dd2506dd.tar.bz2 |
*** empty log message ***
From-SVN: r1259
-rw-r--r-- | gcc/input.h | 4 | ||||
-rw-r--r-- | gcc/regclass.c | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/input.h b/gcc/input.h index 8c326f9..9d238dc 100644 --- a/gcc/input.h +++ b/gcc/input.h @@ -15,6 +15,10 @@ struct file_stack char *name; struct file_stack *next; int line; + /* This is for front ends that do include processing + internally rather than having a preprocessor do it. + Modula 2 needs this. */ + FILE *fd; }; /* Stack of currently pending input files. diff --git a/gcc/regclass.c b/gcc/regclass.c index eda799c6..4bb6605 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -962,12 +962,12 @@ record_address_regs (x, bcost, icost) /* Indexed by pseudo register number, gives uid of first insn using the reg (as of the time reg_scan is called). */ -short *regno_first_uid; +int *regno_first_uid; /* Indexed by pseudo register number, gives uid of last insn using the reg (as of the time reg_scan is called). */ -short *regno_last_uid; +int *regno_last_uid; /* Record the number of registers we used when we allocated the above two tables. If we are called again with more than this, we must re-allocate @@ -996,15 +996,15 @@ reg_scan (f, nregs, repeat) /* Leave some spare space in case more regs are allocated. */ highest_regno_in_uid_map = nregs + nregs / 20; regno_first_uid - = (short *) oballoc (highest_regno_in_uid_map * sizeof (short)); + = (int *) oballoc (highest_regno_in_uid_map * sizeof (int)); regno_last_uid - = (short *) oballoc (highest_regno_in_uid_map * sizeof (short)); + = (int *) oballoc (highest_regno_in_uid_map * sizeof (int)); reg_n_sets = (short *) oballoc (highest_regno_in_uid_map * sizeof (short)); } - bzero (regno_first_uid, highest_regno_in_uid_map * sizeof (short)); - bzero (regno_last_uid, highest_regno_in_uid_map * sizeof (short)); + bzero (regno_first_uid, highest_regno_in_uid_map * sizeof (int)); + bzero (regno_last_uid, highest_regno_in_uid_map * sizeof (int)); bzero (reg_n_sets, highest_regno_in_uid_map * sizeof (short)); max_parallel = 3; |