summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 08:07:02 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-26 08:07:02 +0000
commitdb7439ff199a94fd160b2f8765344338b7a65693 (patch)
tree3164bc3e505164341730f319c73778766bd493b5
parent6bb21d381eda5acde1e4732fba39a040e9b041f5 (diff)
downloadppe42-gcc-db7439ff199a94fd160b2f8765344338b7a65693.tar.gz
ppe42-gcc-db7439ff199a94fd160b2f8765344338b7a65693.zip
PR tree-optimization/19421
* 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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 145cc2d0bf4..41af552bb66 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index eca80c3c8a4..4827fa20358 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -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);
OpenPOWER on IntegriCloud