summaryrefslogtreecommitdiff
path: root/gcc/ipa-reference.c
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-17 15:46:03 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-09-17 15:46:03 +0000
commit42615b92f8f4f3f10f3ad427ddca45882325d64d (patch)
tree0799668c9cffc20b27350596d33a010cf8439c8d /gcc/ipa-reference.c
parent73b5e7223d01874c89858452ad7a0edf6ee20ee2 (diff)
downloadgcc-42615b92f8f4f3f10f3ad427ddca45882325d64d.tar.gz
2008-09-17 Art Haas <ahaas@impactweather.com>
* 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
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r--gcc/ipa-reference.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c
index 861b1536232..6c76ccc8a4e 100644
--- a/gcc/ipa-reference.c
+++ b/gcc/ipa-reference.c
@@ -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));