c-parse.in (parmlist_or_identifiers_1): Remove unreachable and redundant code.
authorJoseph Myers <jsm@polyomino.org.uk>
Mon, 30 Aug 2004 19:23:48 +0000 (20:23 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Mon, 30 Aug 2004 19:23:48 +0000 (20:23 +0100)
* c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
redundant code.

From-SVN: r86799

gcc/ChangeLog
gcc/c-parse.in

index 0017a24ac8d861aa5e00bb8cc00cf8cd45d8429b..00f5745e38ae419458365d78a5667e319377bef2 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c28b1565c84222116653b2e72117fe2fcee4cd20..f8acb2342e20e5a74b46a1b7c5bdf51aaed1c6f7 100644 (file)
@@ -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;
                }
        ;