This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
PATCH: expression parsing - '(' operator
- To: binutils at sourceware dot cygnus dot com
- Subject: PATCH: expression parsing - '(' operator
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Tue, 13 Jun 2000 17:53:02 -0400
Hi -
I believe I need the following patch in order to enable a new target that
uses '(' and ')' in the operands of instructions for special addressing
modes. It's something like the m68k, but uses less hand-made parsing.
The patch allows the target to take '(' for itself in the operand
context, like other targets take '['. May I commit?
2000-06-13 Frank Ch. Eigler <fche@redhat.com>
* expr.c (operand): Accept '(' as expression grouping operator only
if target doesn't define NEED_PAREN_OPERATOR.
Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.16
diff -p -u -r1.16 expr.c
--- expr.c 2000/06/02 02:52:09 1.16
+++ expr.c 2000/06/13 21:47:14
@@ -997,7 +997,9 @@ operand (expressionP)
break;
+#ifndef NEED_PAREN_OPERATOR
case '(':
+#endif
#ifndef NEED_INDEX_OPERATOR
case '[':
#endif