summaryrefslogtreecommitdiff
path: root/gcc/cp/optimize.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-13 23:59:19 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-13 23:59:19 +0000
commitdc721f3696d4cbf22182ae2ba3107a14fe25550e (patch)
tree27cbfcbaa8a6b2863468e56d367667ff8cb34a0a /gcc/cp/optimize.c
parentfff4a7bf7ef36f74755e97460072ee483ded489e (diff)
downloadgcc-dc721f3696d4cbf22182ae2ba3107a14fe25550e.tar.gz
Partial fix PR c++/12850
* cgraphunit.c (cgraph_finalize_function): Always ggc_collect when at zero nest level. * decl2.c (mark_used): Do not proactively instantiate templates when compiling in unit-at-a-time or not optimizing. * optimize.c (maybe_clone_body): Do not increase function depth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75823 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r--gcc/cp/optimize.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c
index 7dc57ce31a3..1ddffc9c76c 100644
--- a/gcc/cp/optimize.c
+++ b/gcc/cp/optimize.c
@@ -129,11 +129,6 @@ maybe_clone_body (tree fn)
/* Emit the DWARF1 abstract instance. */
(*debug_hooks->deferred_inline_function) (fn);
- /* Our caller does not expect collection to happen, which it might if
- we decide to compile the function to rtl now. Arrange for a new
- gc context to be created if so. */
- function_depth++;
-
/* We know that any clones immediately follow FN in the TYPE_METHODS
list. */
for (clone = TREE_CHAIN (fn);
@@ -253,8 +248,6 @@ maybe_clone_body (tree fn)
pop_from_top_level ();
}
- function_depth--;
-
/* We don't need to process the original function any further. */
return 1;
}