This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix bootstrap failure when '--enable-checking' is not used
- From: Art Haas <ahaas at impactweather dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 26 May 2009 17:37:57 GMT
- Subject: [PATCH] Fix bootstrap failure when '--enable-checking' is not used
Hi.
This mornings update failed to bootstrap due after this change:
2009-05-26 Richard Guenther <rguenther@suse.de>
* tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
redundant calls to merge_alias_info.
(bump_vector_ptr): Likewise.
* tree-ssa-copy.c (merge_alias_info): Remove.
(replace_exp_1): Remove call to merge_alias_info.
(propagate_tree_value): Likewise.
(fini_copy_prop): Propagate points-to info.
* tree-flow.h (merge_alias_info): Remove.
The bootstrap fails because variable 'op' is not used unless ENABLE_CHECKING
is defined. The quickie patch below allows for a successful bootstrap
build; I'll leave it to the pros to decide if this fix should be applied
to the tree as is or maybe replacing 'op' in the gcc_assert() expression
is a better way to go.
My thanks to everyone working on GCC.
Art Haas
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