This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix recursion in remap_gimple_op_r
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Jun 2010 22:26:53 +0200 (CEST)
- Subject: [PATCH] Fix recursion in remap_gimple_op_r
On the tuples branch we appearanlty forgot to change that ...
Noticed on the mem-ref branch as I didn't touch copy_tree_body_r.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2010-06-16 Richard Guenther <rguenther@suse.de>
* tree-inline.c (remap_gimple_op_r): Recurse using
remap_gimple_op_r.
Index: gcc/tree-inline.c
===================================================================
*** gcc/tree-inline.c (revision 160857)
--- gcc/tree-inline.c (working copy)
*************** remap_gimple_op_r (tree *tp, int *walk_s
*** 892,898 ****
int invariant = is_gimple_min_invariant (*tp);
tree block = id->block;
id->block = NULL_TREE;
! walk_tree (&TREE_OPERAND (*tp, 0), copy_tree_body_r, id, NULL);
id->block = block;
/* Handle the case where we substituted an INDIRECT_REF
--- 892,898 ----
int invariant = is_gimple_min_invariant (*tp);
tree block = id->block;
id->block = NULL_TREE;
! walk_tree (&TREE_OPERAND (*tp, 0), remap_gimple_op_r, data, NULL);
id->block = block;
/* Handle the case where we substituted an INDIRECT_REF