summaryrefslogtreecommitdiff
path: root/gdb/f-exp.y
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-12-12 21:48:55 +0000
committerBen Elliston <bje@au.ibm.com>2004-12-12 21:48:55 +0000
commit2886a2c42a403c1a8165810b7d2ab62f368789c4 (patch)
treee1c7fc7accee822b9eec3e6c9118594d83e8be58 /gdb/f-exp.y
parentafb1cce950f14fa7a64d78b2c39ecb3266fbad9a (diff)
downloadgdb-2886a2c42a403c1a8165810b7d2ab62f368789c4.tar.gz
* f-exp.y (typename): Remove unused nonterminal.
(name): Likewise.
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r--gdb/f-exp.y13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 5ef65d3bee6..a066c5ac57f 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -177,9 +177,7 @@ static int parse_number (char *, int, int, YYSTYPE *);
%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): (type-qualifier)* type-specifier */
{ $$ = builtin_type_f_complex_s32;}
;
-typename: TYPENAME
- ;
-
nonempty_typelist
: type
{ $$ = (struct type **) malloc (sizeof (struct type *) * 2);
@@ -613,14 +608,6 @@ nonempty_typelist
}
;
-name : NAME
- { $$ = $1.stoken; }
- | TYPENAME
- { $$ = $1.stoken; }
- | NAME_OR_INT
- { $$ = $1.stoken; }
- ;
-
name_not_typename : NAME
/* These would be useful if name_not_typename was useful, but it is just
a fake for "variable", so these cause reduce/reduce conflicts because