diff options
author | Richard Stallman <rms@gnu.org> | 1992-06-04 21:30:48 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-06-04 21:30:48 +0000 |
commit | e38e5ba82f13ad9dac93a5f25e8e98275425c5eb (patch) | |
tree | 9ad544d8292266b24a7451e84a6d53193dbd36a5 | |
parent | 37ce5b86d7d95948a26b5124c14843402fcb5979 (diff) | |
download | gcc-e38e5ba82f13ad9dac93a5f25e8e98275425c5eb.zip gcc-e38e5ba82f13ad9dac93a5f25e8e98275425c5eb.tar.gz gcc-e38e5ba82f13ad9dac93a5f25e8e98275425c5eb.tar.bz2 |
entered into RCS
From-SVN: r1159
-rw-r--r-- | gcc/c-decl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 5f24c59..1997080 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; } |