This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix bootstrap failure when '--enable-checking' is not used


Hi.

Here's a resubmission of my patch from yesterday fixing the
bootstrap failure, now with a ChangeLog entry.

I don't have commit privledges, but here's the link to the
message indicating the patch was acceptable:

http://gcc.gnu.org/ml/gcc-patches/2009-05/msg01696.html

Thanks.

Art Haas

=====================================================

2009-05-27  Art Haas  <ahaas@impactweather.com>

	* ssa-tree-copy.c: Move the declaration of variable 'op'
        within the ENABLE_CHECKING block


diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index bbfc977..73d767e 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -160,9 +160,9 @@ static void
 replace_exp_1 (use_operand_p op_p, tree val,
     	       bool for_propagation ATTRIBUTE_UNUSED)
 {
-  tree op = USE_FROM_PTR (op_p);
 
 #if defined ENABLE_CHECKING
+  tree op = USE_FROM_PTR (op_p);
   gcc_assert (!(for_propagation
 		&& TREE_CODE (op) == SSA_NAME
 		&& TREE_CODE (val) == SSA_NAME


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]