aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-04-17 12:23:52 -0700
committerJim Wilson <wilson@gcc.gnu.org>1995-04-17 12:23:52 -0700
commit79c0672ee61f4484b9d06252fad5086c879a65a9 (patch)
tree1fdc85f8f7e1c8d1680076dc3f35976c874ed948 /gcc
parent85c53d245a40355fe76f6e4ff7d4eca034fe8bba (diff)
downloadgcc-79c0672ee61f4484b9d06252fad5086c879a65a9.zip
gcc-79c0672ee61f4484b9d06252fad5086c879a65a9.tar.gz
gcc-79c0672ee61f4484b9d06252fad5086c879a65a9.tar.bz2
(instantiate_decls): Use temporary allocation if
DECL_DEFER_OUTPUT is set. From-SVN: r9394
Diffstat (limited to 'gcc')
-rw-r--r--gcc/function.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 4b2df47..654a3af 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -2465,7 +2465,7 @@ instantiate_decls (fndecl, valid_only)
{
tree decl;
- if (DECL_INLINE (fndecl))
+ if (DECL_INLINE (fndecl) || DECL_DEFER_OUTPUT (fndecl))
/* When compiling an inline function, the obstack used for
rtl allocation is the maybepermanent_obstack. Calling
`resume_temporary_allocation' switches us back to that
@@ -2484,7 +2484,7 @@ instantiate_decls (fndecl, valid_only)
/* Now process all variables defined in the function or its subblocks. */
instantiate_decls_1 (DECL_INITIAL (fndecl), valid_only);
- if (DECL_INLINE (fndecl))
+ if (DECL_INLINE (fndecl) || DECL_DEFER_OUTPUT (fndecl))
{
/* Save all rtl allocated for this function by raising the
high-water mark on the maybepermanent_obstack. */