* semantics.c (expand_or_defer_fn): Inc/dec function_depth.

From-SVN: r71473
This commit is contained in:
Richard Henderson 2003-09-17 12:26:23 -07:00 committed by Richard Henderson
parent 3b2d7c47c4
commit 99edd65d5e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-09-17 Richard Henderson <rth@redhat.com>
* semantics.c (expand_or_defer_fn): Inc/dec function_depth.
2003-09-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7939

View File

@ -2939,8 +2939,12 @@ expand_or_defer_fn (tree fn)
if (DECL_DECLARED_INLINE_P (fn))
import_export_decl (fn);
function_depth++;
/* Expand or defer, at the whim of the compilation unit manager. */
cgraph_finalize_function (fn, function_depth > 1);
function_depth--;
}
/* Helper function for walk_tree, used by finish_function to override all