aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-07-08 12:02:05 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-07-08 12:02:05 -0400
commita98b1078b7baf999498fdd09dfe7eb3ac669f51d (patch)
treebfa105a741507b4fa75b9abe474f7ef1583e80f8 /gcc
parent0c1c8ea6793315512c98b6faef2cdc04fa01668c (diff)
downloadgcc-a98b1078b7baf999498fdd09dfe7eb3ac669f51d.zip
gcc-a98b1078b7baf999498fdd09dfe7eb3ac669f51d.tar.gz
gcc-a98b1078b7baf999498fdd09dfe7eb3ac669f51d.tar.bz2
(finish_decl): Put RTL and other stuff in permanent_obstack if DECL
is. From-SVN: r7679
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 3dea89a..0a4b1f1 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 ();