summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-12 22:12:02 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-12 22:12:02 +0000
commit75fa5daee01b4b7cd52b956d94a5a8afc26c9cf9 (patch)
tree712a56836ebce54cb8402b5e6dd622b53862cef3
parent4e1601c001c4d415efe709cc0c0aaf6109068cd2 (diff)
downloadgcc-75fa5daee01b4b7cd52b956d94a5a8afc26c9cf9.tar.gz
* global.c (record_conflicts): Don't use an array of shorts to
store an array of ints. (global_conflicts): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24282 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/global.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 08d919c0a59..f2a101bda07 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Sat Dec 12 22:13:02 1998 Mark Mitchell <mark@markmitchell.com>
+
+ * global.c (record_conflicts): Don't use an array of shorts to
+ store an array of ints.
+ (global_conflicts): Likewise.
+
Sat Dec 12 16:49:24 1998 Richard Henderson <rth@cygnus.com>
* alpha.c (alpha_expand_block_move): mode_for_size expects
diff --git a/gcc/global.c b/gcc/global.c
index 3dd8463bc41..67201726e3c 100644
--- a/gcc/global.c
+++ b/gcc/global.c
@@ -261,7 +261,7 @@ static void expand_preferences PROTO((void));
static void prune_preferences PROTO((void));
static void find_reg PROTO((int, HARD_REG_SET, int, int, int));
static void record_one_conflict PROTO((int));
-static void record_conflicts PROTO((short *, int));
+static void record_conflicts PROTO((int *, int));
static void mark_reg_store PROTO((rtx, rtx));
static void mark_reg_clobber PROTO((rtx, rtx));
static void mark_reg_conflicts PROTO((rtx));
@@ -623,12 +623,12 @@ global_conflicts ()
{
register int b, i;
register rtx insn;
- short *block_start_allocnos;
+ int *block_start_allocnos;
/* Make a vector that mark_reg_{store,clobber} will store in. */
regs_set = (rtx *) alloca (max_parallel * sizeof (rtx) * 2);
- block_start_allocnos = (short *) alloca (max_allocno * sizeof (short));
+ block_start_allocnos = (int *) alloca (max_allocno * sizeof (int));
for (b = 0; b < n_basic_blocks; b++)
{
@@ -1291,7 +1291,7 @@ record_one_conflict (regno)
static void
record_conflicts (allocno_vec, len)
- register short *allocno_vec;
+ register int *allocno_vec;
register int len;
{
register int allocno;