PATCH: expression parsing - '(' operator

Frank Ch. Eigler fche@redhat.com
Tue Jun 13 14:53:00 GMT 2000


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



More information about the Binutils mailing list