mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 22:03:57 +08:00
* 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.
This commit is contained in:
@ -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>
|
2002-11-06 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* macrotab.h (struct macro_source_file): Doc fix.
|
* macrotab.h (struct macro_source_file): Doc fix.
|
||||||
|
@ -247,9 +247,11 @@ exp1 : exp
|
|||||||
/* Expressions, not including the comma operator. */
|
/* Expressions, not including the comma operator. */
|
||||||
exp : '*' exp %prec UNARY
|
exp : '*' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_IND); }
|
{ write_exp_elt_opcode (UNOP_IND); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '&' exp %prec UNARY
|
exp : '&' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_ADDR); }
|
{ write_exp_elt_opcode (UNOP_ADDR); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '-' exp %prec UNARY
|
exp : '-' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_NEG); }
|
{ write_exp_elt_opcode (UNOP_NEG); }
|
||||||
|
@ -241,9 +241,11 @@ exp : '(' exp ')'
|
|||||||
/* Expressions, not including the comma operator. */
|
/* Expressions, not including the comma operator. */
|
||||||
exp : '*' exp %prec UNARY
|
exp : '*' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_IND); }
|
{ write_exp_elt_opcode (UNOP_IND); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '&' exp %prec UNARY
|
exp : '&' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_ADDR); }
|
{ write_exp_elt_opcode (UNOP_ADDR); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '-' exp %prec UNARY
|
exp : '-' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_NEG); }
|
{ write_exp_elt_opcode (UNOP_NEG); }
|
||||||
@ -283,6 +285,7 @@ arglist : exp
|
|||||||
|
|
||||||
arglist : substring
|
arglist : substring
|
||||||
{ arglist_len = 2;}
|
{ arglist_len = 2;}
|
||||||
|
;
|
||||||
|
|
||||||
arglist : arglist ',' exp %prec ABOVE_COMMA
|
arglist : arglist ',' exp %prec ABOVE_COMMA
|
||||||
{ arglist_len++; }
|
{ arglist_len++; }
|
||||||
|
@ -216,6 +216,7 @@ type_exp: type
|
|||||||
|
|
||||||
exp : exp '^' %prec UNARY
|
exp : exp '^' %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_IND); }
|
{ write_exp_elt_opcode (UNOP_IND); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '-'
|
exp : '-'
|
||||||
{ number_sign = -1; }
|
{ number_sign = -1; }
|
||||||
@ -330,6 +331,7 @@ exp : INCL '(' exp ',' exp ')'
|
|||||||
|
|
||||||
exp : EXCL '(' exp ',' exp ')'
|
exp : EXCL '(' exp ',' exp ')'
|
||||||
{ error("Sets are not implemented.");}
|
{ error("Sets are not implemented.");}
|
||||||
|
;
|
||||||
|
|
||||||
set : '{' arglist '}'
|
set : '{' arglist '}'
|
||||||
{ error("Sets are not implemented.");}
|
{ error("Sets are not implemented.");}
|
||||||
|
@ -233,7 +233,8 @@ static int search_field;
|
|||||||
start : { current_type = NULL;
|
start : { current_type = NULL;
|
||||||
search_field = 0;
|
search_field = 0;
|
||||||
}
|
}
|
||||||
normal_start;
|
normal_start {}
|
||||||
|
;
|
||||||
|
|
||||||
normal_start :
|
normal_start :
|
||||||
exp1
|
exp1
|
||||||
@ -257,11 +258,13 @@ exp : exp '^' %prec UNARY
|
|||||||
{ write_exp_elt_opcode (UNOP_IND);
|
{ write_exp_elt_opcode (UNOP_IND);
|
||||||
if (current_type)
|
if (current_type)
|
||||||
current_type = TYPE_TARGET_TYPE (current_type); }
|
current_type = TYPE_TARGET_TYPE (current_type); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '@' exp %prec UNARY
|
exp : '@' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_ADDR);
|
{ write_exp_elt_opcode (UNOP_ADDR);
|
||||||
if (current_type)
|
if (current_type)
|
||||||
current_type = TYPE_POINTER_TYPE (current_type); }
|
current_type = TYPE_POINTER_TYPE (current_type); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : '-' exp %prec UNARY
|
exp : '-' exp %prec UNARY
|
||||||
{ write_exp_elt_opcode (UNOP_NEG); }
|
{ write_exp_elt_opcode (UNOP_NEG); }
|
||||||
@ -317,6 +320,7 @@ exp : exp '['
|
|||||||
write_exp_elt_opcode (BINOP_SUBSCRIPT);
|
write_exp_elt_opcode (BINOP_SUBSCRIPT);
|
||||||
if (current_type)
|
if (current_type)
|
||||||
current_type = TYPE_TARGET_TYPE (current_type); }
|
current_type = TYPE_TARGET_TYPE (current_type); }
|
||||||
|
;
|
||||||
|
|
||||||
exp : exp '('
|
exp : exp '('
|
||||||
/* This is to save the value of arglist_len
|
/* This is to save the value of arglist_len
|
||||||
|
Reference in New Issue
Block a user