aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-06-26 11:21:20 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1993-06-26 11:21:20 -0400
commit47df02623af70d9c5285d69b72eed121e2b141d5 (patch)
treec25597292a525f49cc2ceb8c7cd6134c5c29622a /gcc
parent86ef2ef98cf22c2d5a3051d0ebca9b3bdcaa9430 (diff)
downloadgcc-47df02623af70d9c5285d69b72eed121e2b141d5.zip
gcc-47df02623af70d9c5285d69b72eed121e2b141d5.tar.gz
gcc-47df02623af70d9c5285d69b72eed121e2b141d5.tar.bz2
(poplevel): Start new function context when writing inline function.
From-SVN: r4755
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 11447e4..e9b2e5b 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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,