]> gcc.gnu.org Git - gcc.git/commitdiff
* semantics.c (expand_or_defer_fn): Inc/dec function_depth.
authorRichard Henderson <rth@redhat.com>
Wed, 17 Sep 2003 19:26:23 +0000 (12:26 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 17 Sep 2003 19:26:23 +0000 (12:26 -0700)
From-SVN: r71473

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

index 5df525e3dc0a71acb22e9a36bc10db194a53b066..f650e3cda2500a86ee591f2502f780a8f3d8551c 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 4956b418a04a87b81e9582c0adecb8a05c4df0c8..dcd81cdf25f2a152434f20157e363a59ef09ff60 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
This page took 0.110219 seconds and 5 git commands to generate.