Commit 99edd65d by Richard Henderson Committed by Richard Henderson

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

From-SVN: r71473
parent 3b2d7c47
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> 2003-09-16 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/7939 PR c++/7939
......
...@@ -2939,8 +2939,12 @@ expand_or_defer_fn (tree fn) ...@@ -2939,8 +2939,12 @@ expand_or_defer_fn (tree fn)
if (DECL_DECLARED_INLINE_P (fn)) if (DECL_DECLARED_INLINE_P (fn))
import_export_decl (fn); import_export_decl (fn);
function_depth++;
/* Expand or defer, at the whim of the compilation unit manager. */ /* Expand or defer, at the whim of the compilation unit manager. */
cgraph_finalize_function (fn, function_depth > 1); cgraph_finalize_function (fn, function_depth > 1);
function_depth--;
} }
/* Helper function for walk_tree, used by finish_function to override all /* Helper function for walk_tree, used by finish_function to override all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment