* p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
authorPierre Muller <muller@sourceware.org>
Sat, 8 May 2010 09:18:02 +0000 (09:18 +0000)
committerPierre Muller <muller@sourceware.org>
Sat, 8 May 2010 09:18:02 +0000 (09:18 +0000)
gdb/ChangeLog
gdb/p-exp.y

index 64211b6..35f823c 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-08  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
+
 2010-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
index fce3fc7..2aec487 100644 (file)
@@ -525,6 +525,9 @@ exp :       SIZEOF '(' type ')'     %prec UNARY
                          write_exp_elt_opcode (OP_LONG); }
        ;
 
+exp    :       SIZEOF  '(' exp ')'      %prec UNARY
+                       { write_exp_elt_opcode (UNOP_SIZEOF); }
+       
 exp    :       STRING
                        { /* C strings are converted into array constants with
                             an explicit null byte added at the end.  Thus