From eda115ddc4abcc6e577078351dd60c03ee11c06d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 11 Jun 1993 17:32:08 +0000 Subject: [PATCH] (finish_decl): Don't modify DECL_INITIAL of a PARM_DECL. From-SVN: r4662 --- gcc/c-decl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index ac7c3a057eb..5a347e31d7c 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3519,7 +3519,10 @@ finish_decl (decl, init, asmspec_tree) /* ??? After 2.3, test (init != 0) instead of TREE_CODE. */ if (!(TREE_CODE (decl) == FUNCTION_DECL && DECL_INLINE (decl)) - && temporary && TREE_PERMANENT (decl)) + && temporary && TREE_PERMANENT (decl) + /* DECL_INITIAL is not defined in PARM_DECLs, since it shares + space with DECL_ARG_TYPE. */ + && TREE_CODE (decl) != PARM_DECL) { /* We need to remember that this array HAD an initialization, but discard the actual temporary nodes, -- 2.30.2