From e38e5ba82f13ad9dac93a5f25e8e98275425c5eb Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 4 Jun 1992 21:30:48 +0000 Subject: [PATCH] entered into RCS From-SVN: r1159 --- gcc/c-decl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5f24c59e9ef..19970805590 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4248,14 +4248,14 @@ get_parm_info (void_at_end) { tree next = TREE_CHAIN (decl); - if (TREE_ASM_WRITTEN (decl)) + if (TREE_CODE (decl) != PARM_DECL) { - error_with_decl (decl, "parameter `%s' has just a forward declaration"); TREE_CHAIN (decl) = new_parms; new_parms = decl; } - if (TREE_CODE (decl) != PARM_DECL) + else if (TREE_ASM_WRITTEN (decl)) { + error_with_decl (decl, "parameter `%s' has just a forward declaration"); TREE_CHAIN (decl) = new_parms; new_parms = decl; } -- 2.30.2