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 in cfi_parse_reg


Hi,

I checked in this patch to initialize the X_md field.  Otherwise, the
X_md field will have random value.


H.J.
---
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gas/ChangeLog,v
retrieving revision 1.4138
diff -u -p -r1.4138 ChangeLog
--- ChangeLog	22 Apr 2010 00:43:37 -0000	1.4138
+++ ChangeLog	22 Apr 2010 00:44:49 -0000
@@ -1,5 +1,9 @@
 2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* dw2gencfi.c (cfi_parse_reg): Initialize the X_md field.
+
+2010-04-21  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* config/tc-i386.c (i386_is_register): Remove is_intel_syntax.
 	(x86_cons): Updated.
 	(parse_register): Likewise.
Index: dw2gencfi.c
===================================================================
RCS file: /cvs/src/src/gas/dw2gencfi.c,v
retrieving revision 1.48
diff -u -p -r1.48 dw2gencfi.c
--- dw2gencfi.c	15 Mar 2010 15:11:13 -0000	1.48
+++ dw2gencfi.c	22 Apr 2010 00:44:49 -0000
@@ -483,6 +483,7 @@ cfi_parse_reg (void)
   int regno;
   expressionS exp;
 
+  exp.X_md = 0;
   tc_parse_to_dw2regnum (&exp);
   switch (exp.X_op)
     {


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