]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
df.c (df_insn_modify): Realloc the INSN table here, if necessary, here, too.
authorDaniel Berlin <dan@cgsoftware.com>
Sun, 26 Aug 2001 15:02:08 +0000 (15:02 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Sun, 26 Aug 2001 15:02:08 +0000 (15:02 +0000)
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

gcc/ChangeLog
gcc/df.c

index 278ca881f1b4360443827fa4d8261d34b60368b4..874e747bc2decdcd19f379f4e1ae5bb7624aabae 100644 (file)
@@ -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
index ebf2e1fdfea3125bc719b94927acba37cfa8f55c..b1cff25a901fe74913fa646ac8376baf73d19ebb 100644 (file)
--- 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);