diff options
author | Jan Hubicka <jh@suse.cz> | 2004-01-14 00:59:19 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-01-13 23:59:19 +0000 |
commit | d34cb6a14965380b1e0b8af0d5a8ff2f3c165055 (patch) | |
tree | 27cbfcbaa8a6b2863468e56d367667ff8cb34a0a /gcc/cp/optimize.c | |
parent | c951359074f5d123d3cc96c56d47291623f74629 (diff) | |
download | gcc-d34cb6a14965380b1e0b8af0d5a8ff2f3c165055.zip gcc-d34cb6a14965380b1e0b8af0d5a8ff2f3c165055.tar.gz gcc-d34cb6a14965380b1e0b8af0d5a8ff2f3c165055.tar.bz2 |
Partial fix PR c++/12850
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.
From-SVN: r75823
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 7dc57ce..1ddffc9 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; } |