From: Jim Wilson Date: Wed, 16 Sep 1992 01:07:05 +0000 (-0700) Subject: (grokparms): Copy parm list if it isn't permanent, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c47851ddce30de5239c96f1a2ce4466efefb6ea6;p=gcc.git (grokparms): Copy parm list if it isn't permanent, instead of copying it if temporary allocation has been turned off. From-SVN: r2131 --- 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. */