flow.c (find_basic_blocks_1): Do not delete unreachable blocks after reload has compl...
authorJeffrey A Law <law@cygnus.com>
Fri, 16 Oct 1998 17:44:05 +0000 (17:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 16 Oct 1998 17:44:05 +0000 (11:44 -0600)
        * flow.c (find_basic_blocks_1): Do not delete unreachable blocks
        after reload has completed.

From-SVN: r23140

gcc/ChangeLog
gcc/flow.c

index 52eff0816590de1a9d02393a9925dc38459aee9f..df1abe7be42b53861c0199512554b2348555c965 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct 16 10:58:23 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * flow.c (find_basic_blocks_1): Do not delete unreachable blocks
+       after reload has completed.
+
 Fri Oct 16 17:26:10 1998  Dave Brolley  <brolley@cygnus.com>
 
        * cpplib.c (cpp_get_token): Replace whitespace that occurs between
index b91882337ca7ca9fb3f5fad00db3ac84e2b7e1e8..32e6ebbfd4e1064da47fe3c99ec0e7a52380603a 100644 (file)
@@ -597,7 +597,7 @@ find_basic_blocks_1 (f, nonlocal_labels)
   if (n_basic_blocks > 0)
     {
       int something_marked = 1;
-      int deleted;
+      int deleted = 0;
 
       /* Pass over all blocks, marking each block that is reachable
         and has not yet been marked.
@@ -631,7 +631,8 @@ find_basic_blocks_1 (f, nonlocal_labels)
            && LABEL_REFS (basic_block_head[i]) == basic_block_head[i])
          abort ();
 
-      deleted = delete_unreachable_blocks ();
+      if (! reload_completed)
+       deleted = delete_unreachable_blocks ();
 
       /* There are pathological cases where one function calling hundreds of
         nested inline functions can generate lots and lots of unreachable