This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RFA/patch: gas/expr.c: LITERAL_PREFIXPERCENT_BIN
- To: binutils at sources dot redhat dot com
- Subject: RFA/patch: gas/expr.c: LITERAL_PREFIXPERCENT_BIN
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Mon, 17 Jul 2000 10:55:09 -0400
Hi -
May I commit the following patch, which adds a "%" prefix sibling for the
recently added "$" prefix?
2000-07-17 Frank Ch. Eigler <fche@redhat.com>
* expr.c (operand): Permit %bin literals if LITERAL_PREFIXPERCENT_BIN
is defined.
Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.19
diff -p -u -r1.19 expr.c
--- expr.c 2000/06/23 10:51:28 1.19
+++ expr.c 2000/07/17 14:54:32
@@ -826,6 +826,12 @@ operand (expressionP)
break;
#endif
+#ifdef LITERAL_PREFIXPERCENT_BIN
+ case '%':
+ integer_constant (2, expressionP);
+ break;
+#endif
+
case '0':
/* non-decimal radix */