OSDN Git Service

* c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Aug 2004 19:23:48 +0000 (19:23 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Aug 2004 19:23:48 +0000 (19:23 +0000)
redundant code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86799 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-parse.in

index 0017a24..00f5745 100644 (file)
@@ -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
index c28b156..f8acb23 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;
                }
        ;