summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-06-26 15:19:08 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1993-06-26 15:19:08 +0000
commitdebf326bd0b3ad457bf377164c1390bac78a5b1a (patch)
tree174fe07ad72b3c0e8635a84956a0275e27548c9d /gcc/toplev.c
parent908c5a9d4cb15596e48447ced0d8e1c164afda93 (diff)
downloadgcc-debf326bd0b3ad457bf377164c1390bac78a5b1a.tar.gz
(compile_file): Switch to temporary allocation when writing out inline
functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4754 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index f45ca99bc91..05fef4d28b7 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1,5 +1,5 @@
/* Top level of GNU C compiler
- Copyright (C) 1987, 1988, 1989, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -1930,7 +1930,11 @@ compile_file (name)
&& (TREE_ADDRESSABLE (decl)
|| TREE_ADDRESSABLE (DECL_ASSEMBLER_NAME (decl)))
&& ! DECL_EXTERNAL (decl))
- output_inline_function (decl);
+ {
+ temporary_allocation ();
+ output_inline_function (decl);
+ permanent_allocation ();
+ }
/* Warn about any function
declared static but not defined.