summaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-21 02:02:19 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-21 02:02:19 +0000
commitbee2651c3985d89333d7ce4ef1bd45a2a3490f52 (patch)
tree67ffd521169b63b4965bfbcfde7bdbf8bc18684e /gcc/cse.c
parent04a40f24cab0917c13dcd0467a5ffdac29413cf7 (diff)
downloadgcc-bee2651c3985d89333d7ce4ef1bd45a2a3490f52.tar.gz
* gcse.c: Remove an obsolete comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95319 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index e9f6c2f4724..e16113c68b8 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -864,10 +864,12 @@ init_cse_reg_info (unsigned int nregs)
}
/* Reallocate the table with NEW_SIZE entries. */
- cse_reg_info_table = xrealloc (cse_reg_info_table,
- (sizeof (struct cse_reg_info)
- * new_size));
+ if (cse_reg_info_table)
+ free (cse_reg_info_table);
+ cse_reg_info_table = xmalloc (sizeof (struct cse_reg_info)
+ * new_size);
cse_reg_info_table_size = new_size;
+ cse_reg_info_table_first_uninitialized = 0;
}
/* Do we have all of the first NREGS entries initialized? */