This is the mail archive of the binutils@sources.redhat.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] Re: BUG in operator precedence in as




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



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