Commit 66f2e88d by Jason Merrill Committed by Jason Merrill

decl.c (grokparms): Don't bash a permanent list node if we're in a function.

	* decl.c (grokparms): Don't bash a permanent list node if we're
	in a function.

From-SVN: r15516
parent 8552680f
Wed Sep 17 10:31:25 1997 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (grokparms): Don't bash a permanent list node if we're
in a function.
1997-09-17 Brendan Kehoe <brendan@lisa.cygnus.com> 1997-09-17 Brendan Kehoe <brendan@lisa.cygnus.com>
* Makefile.in (CONFLICTS): Fix s/r conflict count to 18. * Makefile.in (CONFLICTS): Fix s/r conflict count to 18.
......
...@@ -10040,7 +10040,7 @@ grokparms (first_parm, funcdef_flag) ...@@ -10040,7 +10040,7 @@ grokparms (first_parm, funcdef_flag)
TREE_CHAIN (last_decl) = decl; TREE_CHAIN (last_decl) = decl;
last_decl = decl; last_decl = decl;
} }
if (TREE_PERMANENT (list_node)) if (! current_function_decl && TREE_PERMANENT (list_node))
{ {
TREE_PURPOSE (list_node) = init; TREE_PURPOSE (list_node) = init;
TREE_VALUE (list_node) = type; TREE_VALUE (list_node) = type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment