From 216116130ec74d76a8ed9a2370bff2a446e228dc Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 30 Aug 2004 20:23:48 +0100 Subject: [PATCH] c-parse.in (parmlist_or_identifiers_1): Remove unreachable and redundant code. * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and redundant code. From-SVN: r86799 --- gcc/ChangeLog | 5 +++++ gcc/c-parse.in | 8 +------- 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,3 +1,8 @@ +2004-08-30 Joseph S. Myers + + * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and + redundant code. + 2004-08-30 Joseph S. Myers * c-tree.h (struct language_function): Add arg_info element. 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 ($-1 != 0 - && (TREE_CODE ($$) != TREE_LIST - || TREE_PURPOSE ($$) == 0 - || TREE_CODE (TREE_PURPOSE ($$)) != PARM_DECL)) + if ($-1 != 0) YYERROR1; } ; -- 2.30.2