aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-reference.c
diff options
context:
space:
mode:
authorArt Haas <ahaas@impactweather.com>2008-09-17 15:46:03 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2008-09-17 08:46:03 -0700
commit71b10713042adcba36768039d3f0d5231b34f90a (patch)
tree0799668c9cffc20b27350596d33a010cf8439c8d /gcc/ipa-reference.c
parent0494626aae628174dd5d510d25a1fabac300387a (diff)
downloadgcc-71b10713042adcba36768039d3f0d5231b34f90a.zip
gcc-71b10713042adcba36768039d3f0d5231b34f90a.tar.gz
gcc-71b10713042adcba36768039d3f0d5231b34f90a.tar.bz2
ipa-reference.c (analyze_function): Declare step only if ENABLE_CHECKING is defined.
2008-09-17 Art Haas <ahaas@impactweather.com> * ipa-reference.c (analyze_function): Declare step only if ENABLE_CHECKING is defined. From-SVN: r140420
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 861b153..6c76ccc 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));