OSDN Git Service

2008-09-17 Art Haas <ahaas@impactweather.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2008 15:46:03 +0000 (15:46 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2008 15:46:03 +0000 (15:46 +0000)
* ipa-reference.c (analyze_function): Declare step only if
ENABLE_CHECKING is defined.

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

gcc/ChangeLog
gcc/ipa-reference.c

index 9b763f8..814a79e 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-17  Art Haas  <ahaas@impactweather.com>
+
+       * ipa-reference.c (analyze_function): Declare step only if
+       ENABLE_CHECKING is defined.
+
 2008-09-17  Jan Hubicka  <jh@suse.cz>
 
        PR c++/18071
index 861b153..6c76ccc 100644 (file)
@@ -674,7 +674,9 @@ analyze_function (struct cgraph_node *fn)
   tree decl = fn->decl;
   struct function *this_cfun = DECL_STRUCT_FUNCTION (decl);
   basic_block this_block;
+#ifdef ENABLE_CHECKING
   tree step;
+#endif
 
   if (dump_file)
     fprintf (dump_file, "\n local analysis of %s\n", cgraph_node_name (fn));