* semantics.c (expand_or_defer_fn): Inc/dec function_depth.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2003 19:26:23 +0000 (19:26 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 17 Sep 2003 19:26:23 +0000 (19:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71473 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 5df525e..f650e3c 100644 (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
index 4956b41..dcd81cd 100644 (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