summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dan@cgsoftware.com>2001-08-26 15:02:08 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2001-08-26 15:02:08 +0000
commit772b1404090767a38eec638250bd9ae30ac271cb (patch)
tree4817dd7fa0175c47ecf34a05f35baa602b5bb8ec
parent2dc55bc99fbb19ab0df8ae0ec3480f469bceb93e (diff)
downloadgcc-772b1404090767a38eec638250bd9ae30ac271cb.tar.gz
df.c (df_insn_modify): Realloc the INSN table here, if necessary, here, too.
2001-08-26 Daniel Berlin <dan@cgsoftware.com> * df.c (df_insn_modify): Realloc the INSN table here, if necessary, here, too. From-SVN: r45183
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/df.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 278ca881f1b..874e747bc2d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-26 Daniel Berlin <dan@cgsoftware.com>
+
+ * df.c (df_insn_modify): Realloc the INSN table here, if
+ necessary, here, too.
+
2001-08-26 Aldy Hernandez <aldyh@redhat.com>
* config/mips/mips.c (mips_function_value): Handle complex return
diff --git a/gcc/df.c b/gcc/df.c
index ebf2e1fdfea..b1cff25a901 100644
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -2601,6 +2601,9 @@ df_insn_modify (df, bb, insn)
uid = INSN_UID (insn);
+ if (uid >= df->insn_size)
+ df_insn_table_realloc (df, 0);
+
bitmap_set_bit (df->bbs_modified, bb->index);
bitmap_set_bit (df->insns_modified, uid);