This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

PATCH: Initialize the X_md field


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


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