diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-08 16:54:13 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-08 16:54:13 +0000 |
commit | b1762aa23a99a928306a7ec172f343ccfc71917c (patch) | |
tree | 2a429372d91b62de9e98aba3487e9646fdd7a88c /gcc/cp/optimize.c | |
parent | b44599c0959189afd98602acf18bdb91cdfe3975 (diff) | |
download | ppe42-gcc-b1762aa23a99a928306a7ec172f343ccfc71917c.tar.gz ppe42-gcc-b1762aa23a99a928306a7ec172f343ccfc71917c.zip |
* optimize.c (maybe_clone_body): Inc/dec function_depth.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71210 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/optimize.c')
-rw-r--r-- | gcc/cp/optimize.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index bcb74e4917f..3204311ea7d 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -130,6 +130,11 @@ 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,6 +258,8 @@ maybe_clone_body (tree fn) pop_from_top_level (); } + function_depth--; + /* We don't need to process the original function any further. */ return 1; } |