bb-reorder.c (reorder_basic_blocks): Allocate an aux block for the exit block.

* bb-reorder.c (reorder_basic_blocks): Allocate an aux block for
the exit block.

From-SVN: r36849
This commit is contained in:
Richard Earnshaw 2000-10-12 12:33:59 +00:00 committed by Richard Earnshaw
parent b1e5331860
commit 74490e0552
2 changed files with 9 additions and 0 deletions

View 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.

View 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