diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-06-26 15:21:20 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-06-26 15:21:20 +0000 |
commit | a8053f1e0d7924464c0408f2172360c6d6ca93a4 (patch) | |
tree | c25597292a525f49cc2ceb8c7cd6134c5c29622a /gcc | |
parent | debf326bd0b3ad457bf377164c1390bac78a5b1a (diff) | |
download | gcc-a8053f1e0d7924464c0408f2172360c6d6ca93a4.tar.gz |
(poplevel): Start new function context when writing inline function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 11447e4730a..e9b2e5b6ff1 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, |