(finish_decl): Put RTL and other stuff in permanent_obstack if DECL
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jul 1994 16:02:05 +0000 (16:02 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jul 1994 16:02:05 +0000 (16:02 +0000)
is.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7679 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-decl.c

index 3dea89a..0a4b1f1 100644 (file)
@@ -3592,7 +3592,8 @@ finish_decl (decl, init, asmspec_tree)
 
   if (TREE_CODE (decl) == VAR_DECL || TREE_CODE (decl) == FUNCTION_DECL)
     {
-      if (flag_traditional && allocation_temporary_p ())
+      if ((flag_traditional || TREE_PERMANENT (decl))
+         && allocation_temporary_p ())
        {
          push_obstacks_nochange ();
          end_temporary_allocation ();