OSDN Git Service

2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2007 18:43:55 +0000 (18:43 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Jul 2007 18:43:55 +0000 (18:43 +0000)
* ddg.c (add_cross_iteration_register_deps): Declare bb_info
only if ENABLE_CHECKING is defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127103 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ddg.c

index b709428..e39bbe2 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ddg.c (add_cross_iteration_register_deps): Declare bb_info
+       only if ENABLE_CHECKING is defined.
+
 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
 
        * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
index 22ad92f..b28bdfd 100644 (file)
--- a/gcc/ddg.c
+++ b/gcc/ddg.c
@@ -239,7 +239,9 @@ add_cross_iteration_register_deps (ddg_ptr g, struct df_ref *last_def)
   rtx def_insn = DF_REF_INSN (last_def);
   ddg_node_ptr last_def_node = get_node_of_insn (g, def_insn);
   ddg_node_ptr use_node;
+#ifdef ENABLE_CHECKING
   struct df_rd_bb_info *bb_info = DF_RD_BB_INFO (g->bb);
+#endif
   struct df_ref *first_def = df_bb_regno_first_def_find (g->bb, regno);
 
   gcc_assert (last_def_node);