summaryrefslogtreecommitdiff
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorTheodore A. Roth <troth@openavr.org>2002-11-06 22:48:25 +0000
committerTheodore A. Roth <troth@openavr.org>2002-11-06 22:48:25 +0000
commitef9441350c3b5a17b2791f701b73d15ebdc91b58 (patch)
treedc569dff2d76437cd591b981cde743236cb9199e /gdb/p-exp.y
parent4917946930e5e20ae6a615fd32be5f50cab56418 (diff)
downloadbinutils-gdb-ef9441350c3b5a17b2791f701b73d15ebdc91b58.tar.gz
* 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.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r--gdb/p-exp.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 4dc99be8ce4..d52747b072e 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -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