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 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


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