This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[RFA/gas] dwarf2dbg.c, Assign instead of conditional in assert?
- From: Michael Snyder <msnyder at vmware dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>, "nickc at redhat dot com" <nickc at redhat dot com>
- Date: Wed, 09 Mar 2011 13:22:49 -0800
- Subject: [RFA/gas] dwarf2dbg.c, Assign instead of conditional in assert?
Surely this can't be intentional...
2011-03-09 Michael Snyder <msnyder@vmware.com>
* dwarf2dbg.c (emit_fixed_inc_line_addr): Assign instead of
conditional in assert.
Index: dwarf2dbg.c
===================================================================
RCS file: /cvs/src/src/gas/dwarf2dbg.c,v
retrieving revision 1.108
diff -u -p -r1.108 dwarf2dbg.c
--- dwarf2dbg.c 28 Feb 2011 18:32:52 -0000 1.108
+++ dwarf2dbg.c 9 Mar 2011 21:18:13 -0000
@@ -1080,7 +1080,7 @@ emit_fixed_inc_line_addr (int line_delta
symbolS *to_sym;
expressionS exp;
- gas_assert (pexp->X_op = O_subtract);
+ gas_assert (pexp->X_op == O_subtract);
to_sym = pexp->X_add_symbol;
*p++ = DW_LNS_extended_op;