]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* c-exp.y: Add missing semi-colons.
authorTheodore A. Roth <troth@openavr.org>
Wed, 6 Nov 2002 22:48:25 +0000 (22:48 +0000)
committerTheodore A. Roth <troth@openavr.org>
Wed, 6 Nov 2002 22:48:25 +0000 (22:48 +0000)
* f-exp.y: Add missing semi-colons.
* m2-exp.y: Add missing semi-colons.
* p-exp.y: Add missing semi-colons.
Add empty action to start rule to avoid a type clash error when
building with bison >= 1.50.

gdb/ChangeLog
gdb/c-exp.y
gdb/f-exp.y
gdb/m2-exp.y
gdb/p-exp.y

index 707dadfb1bc5c176fa9b697bf93df5526e1f098f..ff780bd960d8324bbd5bd1f4a838a4925d82baca 100644 (file)
@@ -1,3 +1,12 @@
+2002-11-06  Theodore A. Roth  <troth@openavr.org>
+
+       * c-exp.y: Add missing semi-colons.
+       * f-exp.y: Add missing semi-colons.
+       * m2-exp.y: Add missing semi-colons.
+       * p-exp.y: Add missing semi-colons.
+       Add empty action to start rule to avoid a type clash error when
+       building with bison >= 1.50.
+
 2002-11-06  Jim Blandy  <jimb@redhat.com>
 
        * macrotab.h (struct macro_source_file): Doc fix.
index 1f344c47b7bd3913e67fc902b0a85726dad1793a..9df0aee428ffe8af76ab93153a88a26e097ec0e3 100644 (file)
@@ -247,9 +247,11 @@ exp1       :       exp
 /* Expressions, not including the comma operator.  */
 exp    :       '*' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_IND); }
+       ;
 
 exp    :       '&' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_ADDR); }
+       ;
 
 exp    :       '-' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_NEG); }
index b9004264eec69d25a9447bab97ebfaa9467ea77d..56fd70af954871ff8f1b5143e53b2132be0e937e 100644 (file)
@@ -241,9 +241,11 @@ exp     :       '(' exp ')'
 /* Expressions, not including the comma operator.  */
 exp    :       '*' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_IND); }
+       ;
 
 exp    :       '&' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_ADDR); }
+       ;
 
 exp    :       '-' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_NEG); }
@@ -283,6 +285,7 @@ arglist     :       exp
 
 arglist :      substring
                         { arglist_len = 2;}
+       ;
    
 arglist        :       arglist ',' exp   %prec ABOVE_COMMA
                        { arglist_len++; }
index e291d62b1cbc12e2306fa89ba91c325950be6fc6..3fb46851c84b424ae88951f9834ca9a9be207fa0 100644 (file)
@@ -216,6 +216,7 @@ type_exp:   type
 
 exp     :       exp '^'   %prec UNARY
                         { write_exp_elt_opcode (UNOP_IND); }
+       ;
 
 exp    :       '-'
                        { number_sign = -1; }
@@ -330,6 +331,7 @@ exp :       INCL '(' exp ',' exp ')'
 
 exp    :       EXCL '(' exp ',' exp ')'
                        { error("Sets are not implemented.");}
+       ;
 
 set    :       '{' arglist '}'
                        { error("Sets are not implemented.");}
index 4dc99be8ce451968173cadb846aeb3194c2dc3c8..d52747b072eda4d5860b868658a35bc4af836bee 100644 (file)
@@ -233,7 +233,8 @@ static int search_field;
 start   :      { current_type = NULL;
                  search_field = 0;
                }
-               normal_start;
+               normal_start {}
+       ;
 
 normal_start   :
                exp1
@@ -257,11 +258,13 @@ exp       :       exp '^'   %prec UNARY
                        { write_exp_elt_opcode (UNOP_IND);
                          if (current_type) 
                            current_type = TYPE_TARGET_TYPE (current_type); }
+       ;
 
 exp    :       '@' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_ADDR); 
                          if (current_type)
                            current_type = TYPE_POINTER_TYPE (current_type); }
+       ;
 
 exp    :       '-' exp    %prec UNARY
                        { write_exp_elt_opcode (UNOP_NEG); }
@@ -317,6 +320,7 @@ exp :       exp '['
                          write_exp_elt_opcode (BINOP_SUBSCRIPT);
                          if (current_type)
                            current_type = TYPE_TARGET_TYPE (current_type); }
+       ;
 
 exp    :       exp '('
                        /* This is to save the value of arglist_len