(poplevel): Start new function context when writing inline function.
authorRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Jun 1993 15:21:20 +0000 (11:21 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Sat, 26 Jun 1993 15:21:20 +0000 (11:21 -0400)
From-SVN: r4755

gcc/c-decl.c

index 11447e4730a5850f3ea6e336fce19a90e40e28c6..e9b2e5b6ff1ef91adbcea46970ee1cf54d6f2c2d 100644 (file)
@@ -931,7 +931,11 @@ poplevel (keep, reverse, functionbody)
        if (DECL_ABSTRACT_ORIGIN (decl) != 0)
          TREE_ADDRESSABLE (DECL_ABSTRACT_ORIGIN (decl)) = 1;
        else
-         output_inline_function (decl);
+         {
+           push_function_context ();
+           output_inline_function (decl);
+           pop_function_context ();
+         }
       }
 
   /* If there were any declarations or structure tags in that level,