bb-reorder.c (reorder_basic_blocks): Allocate an aux block for the exit block.
authorRichard Earnshaw <rearnsha@arm.com>
Thu, 12 Oct 2000 12:33:59 +0000 (12:33 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Thu, 12 Oct 2000 12:33:59 +0000 (12:33 +0000)
* bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
the exit block.

From-SVN: r36849

gcc/ChangeLog
gcc/bb-reorder.c

index b2c4b90e70465a632d09f762b763141185007d7b..7fb0bdc052b04575c61684a8dd421623d5c94318 100644 (file)
@@ -1,3 +1,8 @@
+2000-10-12  Richard Earnshaw  <rearnsha@arm.com>
+
+       * bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
+       the exit block.
+
 2000-10-12  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.texi: Merge in contents of README.TRAD and TESTS.FLUNK.
index c6b996edc744147451e39f4183976a67fcbe2590..3fa8a590276ca769656d46c8f7966badbc5aa94d 100644 (file)
@@ -1358,6 +1358,8 @@ reorder_basic_blocks ()
   for (i = 0; i < n_basic_blocks; i++)
     BASIC_BLOCK (i)->aux = xcalloc (1, sizeof (struct reorder_block_def));
 
+  EXIT_BLOCK_PTR->aux = xcalloc (1, sizeof (struct reorder_block_def));
+
   build_scope_forest (&forest);
   remove_scope_notes ();
 
@@ -1376,6 +1378,8 @@ reorder_basic_blocks ()
   for (i = 0; i < n_basic_blocks; i++)
     free (BASIC_BLOCK (i)->aux);
 
+  free (EXIT_BLOCK_PTR->aux);
+
 #ifdef ENABLE_CHECKING
   verify_flow_info ();
 #endif