From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23863 invoked by alias); 12 Dec 2004 16:38:25 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23844 invoked from network); 12 Dec 2004 16:38:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 12 Dec 2004 16:38:22 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iBCGcG2t023518 for ; Sun, 12 Dec 2004 11:38:21 -0500 Received: from localhost.redhat.com (vpn50-50.rdu.redhat.com [172.16.50.50]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iBCGcGr08364; Sun, 12 Dec 2004 11:38:16 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id CC6E03EF9; Sun, 12 Dec 2004 11:36:12 -0500 (EST) Message-ID: <41BC737C.4060304@gnu.org> Date: Sun, 12 Dec 2004 17:00:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Ben Elliston Cc: gdb-patches@sources.redhat.com Subject: Re: PATCH: remove f-exp.y warnings References: <20041211054016.GA313@namadgi> In-Reply-To: <20041211054016.GA313@namadgi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00331.txt.bz2 Ben Elliston wrote: > This patch eliminates a handful of warnings from bison. Okay for > mainline? Ok, Andrew > 2004-12-11 Ben Elliston > > * f-exp.y (typename): Remove unused nonterminal. > (name): Likewise. > > Index: f-exp.y > =================================================================== > RCS file: /home/bje/src-cvs/src/gdb/f-exp.y,v > retrieving revision 1.15 > diff -u -p -r1.15 f-exp.y > --- f-exp.y 28 Jul 2004 15:49:03 -0000 1.15 > +++ f-exp.y 11 Dec 2004 05:37:42 -0000 > @@ -177,9 +177,7 @@ static int parse_number (char *, int, in > %token BOOLEAN_LITERAL > %token NAME > %token TYPENAME > -%type name > %type name_not_typename > -%type typename > > /* A NAME_OR_INT is a symbol which is not known in the symbol table, > but which would parse as a valid number in the current input radix. > @@ -597,9 +595,6 @@ typebase /* Implements (approximately): > { $$ = builtin_type_f_complex_s32;} > ; > > -typename: TYPENAME > - ; > - > nonempty_typelist > : type > { $$ = (struct type **) malloc (sizeof (struct type *) * 2); > @@ -611,14 +606,6 @@ nonempty_typelist > $$ = (struct type **) realloc ((char *) $1, len); > $$[$$[0]] = $3; > } > - ; > - > -name : NAME > - { $$ = $1.stoken; } > - | TYPENAME > - { $$ = $1.stoken; } > - | NAME_OR_INT > - { $$ = $1.stoken; } > ; > > name_not_typename : NAME