aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-06 14:40:30 +0000
committerTom Tromey <tromey@redhat.com>2012-07-06 14:40:30 +0000
commit16d0138401c61373637305e7ae4d6dd70574f0d2 (patch)
treeb889f38bee7da84a81142647148d33be007d4d80 /gdb
parent9d7b4c23ac400d653e62d98d18877f0779480d4d (diff)
downloadgdb-16d0138401c61373637305e7ae4d6dd70574f0d2.zip
gdb-16d0138401c61373637305e7ae4d6dd70574f0d2.tar.gz
gdb-16d0138401c61373637305e7ae4d6dd70574f0d2.tar.bz2
* c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
Remove %type.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/c-exp.y12
2 files changed, 8 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index baf41f0..51c282d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-06 Tom Tromey <tromey@redhat.com>
+
+ * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
+ Remove %type.
+
2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
* c-lang.c (c_printstr): Remove ununsed variable WIDTH.
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 7afce77..f86f76f 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -172,7 +172,6 @@ static struct stoken operator_stoken (const char *);
/* %type <bval> block */
/* Fancy type parsing. */
-%type <voidval> func_mod direct_abs_decl abs_decl ptr_operator
%type <tval> ptype
%type <lval> array_mod
%type <tval> conversion_type_id
@@ -955,15 +954,13 @@ ptr_operator:
ptr_operator '*'
{ insert_type (tp_pointer); }
const_or_volatile_or_space_identifier
- { $$ = 0; }
| '*'
{ insert_type (tp_pointer); }
const_or_volatile_or_space_identifier
- { $$ = 0; }
| '&'
- { insert_type (tp_reference); $$ = 0; }
+ { insert_type (tp_reference); }
| '&' ptr_operator
- { insert_type (tp_reference); $$ = 0; }
+ { insert_type (tp_reference); }
;
abs_decl: ptr_operator direct_abs_decl
@@ -972,7 +969,6 @@ abs_decl: ptr_operator direct_abs_decl
;
direct_abs_decl: '(' abs_decl ')'
- { $$ = $2; }
| direct_abs_decl array_mod
{
push_type_int ($2);
@@ -982,7 +978,6 @@ direct_abs_decl: '(' abs_decl ')'
{
push_type_int ($1);
push_type (tp_array);
- $$ = 0;
}
| direct_abs_decl func_mod
@@ -998,9 +993,8 @@ array_mod: '[' ']'
;
func_mod: '(' ')'
- { $$ = 0; }
| '(' nonempty_typelist ')'
- { free ($2); $$ = 0; }
+ { free ($2); }
;
/* We used to try to recognize pointer to member types here, but