[PATCH] Re: BUG in operator precedence in as

Mikulas Patocka mikulas@artax.karlin.mff.cuni.cz
Tue Nov 28 05:54:00 GMT 2000


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 ()




More information about the Binutils mailing list