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]
Other format: [Raw text]

gas s_leb128 should call md_flush_pending_output


As far as I understand it, md_flush_pending_output is supposed to be called whenever there is a data allocation pseudo-op. It is not called for .sleb128 or .uleb128, and that seems like a bug. This is causing problems for the Xtensa port.

Is this patch OK?


2004-03-10 Bob Wilson <bob.wilson@acm.org>


* read.c (s_leb128): Call md_flush_pending_output.


Index: read.c
===================================================================
RCS file: /cvs/src/src/gas/read.c,v
retrieving revision 1.75
diff -u -p -r1.75 read.c
--- read.c	9 Feb 2004 12:12:42 -0000	1.75
+++ read.c	10 Mar 2004 22:28:26 -0000
@@ -4372,6 +4372,10 @@ s_leb128 (int sign)
 {
   expressionS exp;
 
+#ifdef md_flush_pending_output
+  md_flush_pending_output ();
+#endif
+
   do
     {
       expression (&exp);

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