summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-30 19:23:48 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-30 19:23:48 +0000
commitf47fc523fe8cc7aa65a59c2797e0ca039e6aae25 (patch)
tree9bb6c667398a475008f116a7a66a18f75773a4ab /gcc
parent731e6cbf31a9bec34135d47517ddbeaacdf6b93d (diff)
downloadgcc-f47fc523fe8cc7aa65a59c2797e0ca039e6aae25.tar.gz
* c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
redundant code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86799 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-parse.in8
2 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0017a24ac8d..00f5745e38a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
+ * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
+ redundant code.
+
+2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
+
* c-tree.h (struct language_function): Add arg_info element.
* c-decl.c (current_function_arg_info): New.
(grokdeclarator, store_parm_decls): Use it instead of
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index c28b1565c84..f8acb2342e2 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -2602,16 +2602,10 @@ parmlist_or_identifiers_1:
parmlist_1
| identifiers ')'
{ tree t;
- for (t = $1; t; t = TREE_CHAIN (t))
- if (TREE_VALUE (t) == NULL_TREE)
- error ("`...' in old-style identifier list");
$$ = tree_cons (NULL_TREE, NULL_TREE, $1);
/* Make sure we have a parmlist after attributes. */
- if ($<ttype>-1 != 0
- && (TREE_CODE ($$) != TREE_LIST
- || TREE_PURPOSE ($$) == 0
- || TREE_CODE (TREE_PURPOSE ($$)) != PARM_DECL))
+ if ($<ttype>-1 != 0)
YYERROR1;
}
;