From: Richard Kenner Date: Fri, 8 Jul 1994 16:02:05 +0000 (-0400) Subject: (finish_decl): Put RTL and other stuff in permanent_obstack if DECL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a98b1078b7baf999498fdd09dfe7eb3ac669f51d;p=gcc.git (finish_decl): Put RTL and other stuff in permanent_obstack if DECL is. From-SVN: r7679 --- diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 3dea89aea4a..0a4b1f1d01e 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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 ();