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
This commit is contained in:
Art Haas 2008-09-17 15:46:03 +00:00 committed by H.J. Lu
parent 0494626aae
commit 71b1071304
2 changed files with 7 additions and 0 deletions

View 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

View 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));