rtl.h (flow2_completed): Declare.
authorJeff Law <law@gcc.gnu.org>
Wed, 4 Nov 1998 20:45:03 +0000 (13:45 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 4 Nov 1998 20:45:03 +0000 (13:45 -0700)
x
        * rtl.h (flow2_completed): Declare.
        * flow.c (flow2_completed): Definition.
        * toplev.c (rest_of_compilation): Set and clear flow2_completed
        as necessary.

From-SVN: r23528

gcc/flow.c
gcc/toplev.c

index 4eec565781bd41857d22024f94572aa168513d80..fa9ffa0cc1dfb4de5efede7bf7d8f94fc80c1822 100644 (file)
@@ -161,6 +161,9 @@ int *uid_block_number;
 #define INSN_VOLATILE(INSN) uid_volatile[INSN_UID (INSN)]
 static char *uid_volatile;
 
+/* Nonzero if the second flow pass has completed.  */
+int flow2_completed;
+
 /* Number of basic blocks in the current function.  */
 
 int n_basic_blocks;
index 50ecb4a90418e6c354d3291d49c410e471114df4..c17be4dabd8a3b327b9cdf73165a02ac967bb5aa 100644 (file)
@@ -3803,6 +3803,8 @@ rest_of_compilation (decl)
         life_analysis (insns, max_reg_num (), rtl_dump_file);
        });
 
+  flow2_completed = 1;
+
   /* On some machines, the prologue and epilogue code, or parts thereof,
      can be represented as RTL.  Doing so lets us schedule insns between
      it and the rest of the code and also allows delayed branch
@@ -3972,6 +3974,7 @@ rest_of_compilation (decl)
     }
 
   reload_completed = 0;
+  flow2_completed = 0;
 
   TIMEVAR (final_time,
           {