From a98b1078b7baf999498fdd09dfe7eb3ac669f51d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 8 Jul 1994 12:02:05 -0400 Subject: [PATCH] (finish_decl): Put RTL and other stuff in permanent_obstack if DECL is. From-SVN: r7679 --- gcc/c-decl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (); -- 2.30.2