Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: remove f-exp.y warnings
@ 2004-12-11 11:19 Ben Elliston
  2004-12-12 17:00 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Ben Elliston @ 2004-12-11 11:19 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 1371 bytes --]

This patch eliminates a handful of warnings from bison.  Okay for
mainline?

Ben


2004-12-11  Ben Elliston  <bje@au.ibm.com>

	* 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 <lval> BOOLEAN_LITERAL
 %token <ssym> NAME 
 %token <tsym> TYPENAME
-%type <sval> name
 %type <ssym> name_not_typename
-%type <tsym> 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);
 		  $$[$<ivec>$[0]] = $3;
 		}
-	;
-
-name	:	NAME
-			{ $$ = $1.stoken; }
-	|	TYPENAME
-			{ $$ = $1.stoken; }
-	|	NAME_OR_INT
-			{ $$ = $1.stoken; }
 	;
 
 name_not_typename :	NAME

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: remove f-exp.y warnings
  2004-12-11 11:19 PATCH: remove f-exp.y warnings Ben Elliston
@ 2004-12-12 17:00 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2004-12-12 17:00 UTC (permalink / raw)
  To: Ben Elliston; +Cc: gdb-patches

Ben Elliston wrote:
> This patch eliminates a handful of warnings from bison.  Okay for
> mainline?

Ok,

Andrew

> 2004-12-11  Ben Elliston  <bje@au.ibm.com>
> 
> 	* 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 <lval> BOOLEAN_LITERAL
>  %token <ssym> NAME 
>  %token <tsym> TYPENAME
> -%type <sval> name
>  %type <ssym> name_not_typename
> -%type <tsym> 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);
>  		  $$[$<ivec>$[0]] = $3;
>  		}
> -	;
> -
> -name	:	NAME
> -			{ $$ = $1.stoken; }
> -	|	TYPENAME
> -			{ $$ = $1.stoken; }
> -	|	NAME_OR_INT
> -			{ $$ = $1.stoken; }
>  	;
>  
>  name_not_typename :	NAME


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-12 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-11 11:19 PATCH: remove f-exp.y warnings Ben Elliston
2004-12-12 17:00 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox