aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-11 19:26:45 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-11 19:26:45 -0400
commit9a381dd472d82a91c568c7ea97e41411a47f74e1 (patch)
treee5176c380d048021fa5d8b82ed53155df626742e /gcc
parent868fc7506b9b9824de70612823e7dff108001506 (diff)
downloadgcc-9a381dd472d82a91c568c7ea97e41411a47f74e1.zip
gcc-9a381dd472d82a91c568c7ea97e41411a47f74e1.tar.gz
gcc-9a381dd472d82a91c568c7ea97e41411a47f74e1.tar.bz2
(grokdeclarator): Use PARM_FLAG to see if should make PARM_DECL.
From-SVN: r9627
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0b286b8..8d90e5e7 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4104,7 +4104,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
even if it occurs where parms are expected.
Then store_parm_decls will reject it and not use it as a parm. */
if (decl_context == NORMAL && !funcdef_flag
- && current_binding_level->level_chain == global_binding_level)
+ && current_binding_level->parm_flag)
decl_context = PARM;
/* Look through the decl specs and record which ones appear.