This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Re: BUG in operator precedence in as
- To: binutils at sources dot redhat dot com
- Subject: [PATCH] Re: BUG in operator precedence in as
- From: Mikulas Patocka <mikulas at artax dot karlin dot mff dot cuni dot cz>
- Date: Tue, 28 Nov 2000 14:53:53 +0100 (CET)
- cc: bug-gnu-utils at gnu dot org
On Tue, 28 Nov 2000, Mikulas Patocka wrote:
> Hi
>
> There is bug in operator precedence in as in newer binutils (2.9.5.0.46
> and 2.10.1.0.2), 2.9.1 is correct but has other bugs. '|' and '+' have the
> same precedence.
>
> Mikulas
Here goes the patch. These defines were off by one.
--- gas/expr.c_ Tue Nov 28 14:50:13 2000
+++ gas/expr.c Tue Nov 28 14:50:16 2000
@@ -1517,8 +1517,8 @@
mode. Also, MRI uses a different bit_not operator, and this fixes
that as well. */
-#define STANDARD_MUL_PRECEDENCE (7)
-#define MRI_MUL_PRECEDENCE (5)
+#define STANDARD_MUL_PRECEDENCE (8)
+#define MRI_MUL_PRECEDENCE (6)
void
expr_set_precedence ()