aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-03 02:51:27 +0000
committerRichard Henderson <rth@redhat.com>1999-06-03 02:51:27 +0000
commitb585bc2c0ac716d16d6db3bdfe9f4524de1d7149 (patch)
tree80bf3574cf8f5681536add1f53859a6ea063eb72 /gas/expr.h
parent1c32af2255abf839bf48b241efd4ce0e670eb00c (diff)
downloadgdb-b585bc2c0ac716d16d6db3bdfe9f4524de1d7149.zip
gdb-b585bc2c0ac716d16d6db3bdfe9f4524de1d7149.tar.gz
gdb-b585bc2c0ac716d16d6db3bdfe9f4524de1d7149.tar.bz2
* expr.c (operand): Don't use [ for parens if we want an index op.
(op_encoding): Switch [ into O_index, if desired. (op_rank): Renumber with O_index on bottom. (expr): If O_index, match closing bracket. * expr.h (O_index): New.
Diffstat (limited to 'gas/expr.h')
-rw-r--r--gas/expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/expr.h b/gas/expr.h
index cdf337a..14a2fd2 100644
--- a/gas/expr.h
+++ b/gas/expr.h
@@ -102,6 +102,8 @@ typedef enum
O_logical_and,
/* (X_add_symbol || X_op_symbol) + X_add_number. */
O_logical_or,
+ /* X_op_symbol [ X_add_symbol ] */
+ O_index,
/* this must be the largest value */
O_max
} operatorT;