From c47851ddce30de5239c96f1a2ce4466efefb6ea6 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 15 Sep 1992 18:07:05 -0700 Subject: [PATCH] (grokparms): Copy parm list if it isn't permanent, instead of copying it if temporary allocation has been turned off. From-SVN: r2131 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5e4bbc0623d..faac9a2f0d4 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4496,7 +4496,7 @@ grokparms (parms_info, funcdef_flag) } /* Allocate the list of types the way we allocate a type. */ - if (allocation_temporary_p ()) + if (first_parm && ! TREE_PERMANENT (first_parm)) { /* Construct a copy of the list of types on the saveable obstack. */ -- 2.30.2