From 99edd65d5ef9bd75db878542b66372b192bf8f99 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 17 Sep 2003 12:26:23 -0700 Subject: [PATCH] * semantics.c (expand_or_defer_fn): Inc/dec function_depth. From-SVN: r71473 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/semantics.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5df525e3dc0..f650e3cda25 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-09-17 Richard Henderson + + * semantics.c (expand_or_defer_fn): Inc/dec function_depth. + 2003-09-16 Kriang Lerdsuwanakij PR c++/7939 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 4956b418a04..dcd81cdf25f 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -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