aboutsummaryrefslogtreecommitdiff
path: root/gas/expr.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-11-07 02:15:47 +0000
committerAlan Modra <amodra@gmail.com>2005-11-07 02:15:47 +0000
commitfb7ccfc159511562e051e679bf046cdee0d995a7 (patch)
treebd6a672b1da712dbd5059fa873282de7781fb23b /gas/expr.c
parent0e470c55e8f94578da761b5c08201b8bb2914902 (diff)
downloadfsf-binutils-gdb-fb7ccfc159511562e051e679bf046cdee0d995a7.zip
fsf-binutils-gdb-fb7ccfc159511562e051e679bf046cdee0d995a7.tar.gz
fsf-binutils-gdb-fb7ccfc159511562e051e679bf046cdee0d995a7.tar.bz2
* expr.c (op_encoding): Map '=' to O_SINGLE_EQ, if defined.
* config/tc-z80.h: Define O_SINGLE_EQ as O_eq.
Diffstat (limited to 'gas/expr.c')
-rw-r--r--gas/expr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/expr.c b/gas/expr.c
index 0664e29..a5a7771 100644
--- a/gas/expr.c
+++ b/gas/expr.c
@@ -1390,6 +1390,9 @@ clean_up_expression (expressionS *expressionP)
#undef __
#define __ O_illegal
+#ifndef O_SINGLE_EQ
+#define O_SINGLE_EQ O_illegal
+#endif
/* Maps ASCII -> operators. */
static const operatorT op_encoding[256] = {
@@ -1399,7 +1402,7 @@ static const operatorT op_encoding[256] = {
__, O_bit_or_not, __, __, __, O_modulus, O_bit_and, __,
__, __, O_multiply, O_add, __, O_subtract, __, O_divide,
__, __, __, __, __, __, __, __,
- __, __, __, __, O_lt, __, O_gt, __,
+ __, __, __, __, O_lt, O_SINGLE_EQ, O_gt, __,
__, __, __, __, __, __, __, __,
__, __, __, __, __, __, __, __,
__, __, __, __, __, __, __, __,