(grokparms): Copy parm list if it isn't permanent,
authorJim Wilson <wilson@gcc.gnu.org>
Wed, 16 Sep 1992 01:07:05 +0000 (18:07 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 16 Sep 1992 01:07:05 +0000 (18:07 -0700)
instead of copying it if temporary allocation has been turned off.

From-SVN: r2131

gcc/c-decl.c

index 5e4bbc0623d3a5167b07dc45e292b8a8dfa6ba0b..faac9a2f0d4b2ff633814f570513cdd40abb974c 100644 (file)
@@ -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.  */