This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Initialize the X_md field
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org
- Date: Wed, 21 Apr 2010 10:10:01 -0700
- Subject: PATCH: Initialize the X_md field
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
Hi,
expr has
expressionS right;
...
rightseg = expr (op_rank[(int) op_left], &right, mode);
expr won't touch the X_md field and leaves the X_md field uninitialized.
I am checking in this patch to initialize it.
H.J.
---
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.4135
diff -u -p -r1.4135 ChangeLog
--- ChangeLog 20 Apr 2010 22:02:57 -0000 1.4135
+++ ChangeLog 21 Apr 2010 16:56:34 -0000
@@ -1,3 +1,7 @@
+2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ * expr.c (expr): Clear the X_md field.
+
2010-04-20 Joseph Myers <joseph@codesourcery.com>
* config/tc-tic6x.c (OPTION_MGENERATE_REL): New.
Index: expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.81
diff -u -p -r1.81 expr.c
--- expr.c 11 Dec 2009 13:42:09 -0000 1.81
+++ expr.c 21 Apr 2010 16:56:34 -0000
@@ -1740,6 +1740,7 @@ expr (int rankarg, /* Larger # is highe
input_line_pointer += op_chars; /* -> after operator. */
+ right.X_md = 0;
rightseg = expr (op_rank[(int) op_left], &right, mode);
if (right.X_op == O_absent)
{