ddg.c (check_sccs): Define only if ENABLE_CHECKING is defined.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 3 Jul 2007 14:19:33 +0000 (14:19 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 3 Jul 2007 14:19:33 +0000 (07:19 -0700)
2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>

* ddg.c (check_sccs): Define only if ENABLE_CHECKING is
defined.

From-SVN: r126258

gcc/ChangeLog
gcc/ddg.c

index 2cbddc7f0393065431d1d7a434548b8bcfcd2aca..af3a58e88ad5e7431879af34cef732a23874ba46 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
+       defined.
+
 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        PR target/28307
index 9822806546077e7493d93c1969806f8263c7eea1..31910b3a46231a338c811aebeebb31bd4835bc4f 100644 (file)
--- a/gcc/ddg.c
+++ b/gcc/ddg.c
@@ -870,6 +870,7 @@ order_sccs (ddg_all_sccs_ptr g)
         (int (*) (const void *, const void *)) compare_sccs);
 }
 
+#ifdef ENABLE_CHECKING
 /* Check that every node in SCCS belongs to exactly one strongly connected
    component and that no element of SCCS is empty.  */
 static void
@@ -889,7 +890,7 @@ check_sccs (ddg_all_sccs_ptr sccs, int num_nodes)
     }
   sbitmap_free (tmp);
 }
-
+#endif
 
 /* Perform the Strongly Connected Components decomposing algorithm on the
    DDG and return DDG_ALL_SCCS structure that contains them.  */