bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Re: BUG in operator precedence in as


From: Mikulas Patocka
Subject: [PATCH] Re: BUG in operator precedence in as
Date: Tue, 28 Nov 2000 14:53:53 +0100 (CET)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]