PR tree-optimization/19421
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2005 08:07:02 +0000 (08:07 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2005 08:07:02 +0000 (08:07 +0000)
* tree-inline.c (copy_body_r): Do not walk subtrees after substituting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94254 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 145cc2d..41af552 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-26  Jan Hubicka  <jh@suse.cz>
+
+       PR tree-optimization/19421
+       * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
+
 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
 
        * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
index eca80c3..4827fa2 100644 (file)
@@ -504,6 +504,7 @@ copy_body_r (tree *tp, int *walk_subtrees, void *data)
       /* Replace this variable with the copy.  */
       STRIP_TYPE_NOPS (new_decl);
       *tp = new_decl;
+      *walk_subtrees = 0;
     }
   else if (TREE_CODE (*tp) == STATEMENT_LIST)
     copy_statement_list (tp);