From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28145 invoked by alias); 11 Dec 2004 06:30:54 -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 28046 invoked from network); 11 Dec 2004 06:30:48 -0000 Received: from unknown (HELO ausmtp01.au.ibm.com) (202.81.18.186) by sourceware.org with SMTP; 11 Dec 2004 06:30:48 -0000 Received: from sd0112e0.au.ibm.com (d23rh903.au.ibm.com [202.81.18.201]) by ausmtp01.au.ibm.com (8.12.10/8.12.10) with ESMTP id iBB6WFon438318 for ; Sat, 11 Dec 2004 17:32:18 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.250.244]) by sd0112e0.au.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id iBB6WYau184044 for ; Sat, 11 Dec 2004 17:32:34 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11/8.12.11) with ESMTP id iBB6UfYR015596 for ; Sat, 11 Dec 2004 17:30:41 +1100 Received: from ozlabs.au.ibm.com (haven.au.ibm.com [9.190.164.82]) by d23av03.au.ibm.com (8.12.11/8.12.11) with ESMTP id iBB6Ufic015593 for ; Sat, 11 Dec 2004 17:30:41 +1100 Received: from namadgi.ozlabs.ibm.com (localhost [127.0.0.1]) by ozlabs.au.ibm.com (Postfix) with SMTP id 4CD2017DDC for ; Sat, 11 Dec 2004 16:38:52 +1100 (EST) Received: by namadgi.ozlabs.ibm.com (sSMTP sendmail emulation); Sat, 11 Dec 2004 16:40:17 +1100 From: "Ben Elliston" Date: Sat, 11 Dec 2004 11:19:00 -0000 To: gdb-patches@sources.redhat.com Subject: PATCH: remove f-exp.y warnings Message-ID: <20041211054016.GA313@namadgi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2004-12/txt/msg00292.txt.bz2 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1478 This patch eliminates a handful of warnings from bison. Okay for mainline? Ben 2004-12-11 Ben Elliston * f-exp.y (typename): Remove unused nonterminal. (name): Likewise. Index: f-exp.y =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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=20 %token TYPENAME -%type name %type name_not_typename -%type typename =20 /* 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): { $$ =3D builtin_type_f_complex_s32;} ; =20 -typename: TYPENAME - ; - nonempty_typelist : type { $$ =3D (struct type **) malloc (sizeof (struct type *) * 2); @@ -611,14 +606,6 @@ nonempty_typelist $$ =3D (struct type **) realloc ((char *) $1, len); $$[$$[0]] =3D $3; } - ; - -name : NAME - { $$ =3D $1.stoken; } - | TYPENAME - { $$ =3D $1.stoken; } - | NAME_OR_INT - { $$ =3D $1.stoken; } ; =20 name_not_typename : NAME --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBuohAMGpskFPkywkRAq8xAKCt49ZllD2CWdkCvL3Zh7iX06FTNACffj9Q /g9qj7DXDTh5fiYvAu5TLmg= =Hoi8 -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--