This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: expression parsing - '(' operator


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]