* c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
authorTom Tromey <tromey@redhat.com>
Fri, 6 Jul 2012 14:40:30 +0000 (14:40 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 6 Jul 2012 14:40:30 +0000 (14:40 +0000)
Remove %type.

gdb/ChangeLog
gdb/c-exp.y

index baf41f0..51c282d 100644 (file)
@@ -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.
index 7afce77..f86f76f 100644 (file)
@@ -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