(instantiate_decls): Use temporary allocation if
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 17 Apr 1995 19:23:52 +0000 (12:23 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 17 Apr 1995 19:23:52 +0000 (12:23 -0700)
DECL_DEFER_OUTPUT is set.

From-SVN: r9394

gcc/function.c

index 4b2df47546774c24fe9b845889d934032e83b72c..654a3af4860e564c3af0c6d096551d6f51ff591c 100644 (file)
@@ -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.  */