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]

Re: [SH] Line numbers and delayed branches


On re-reading the code I see that this problem relates to all types of branches, not just delayed branches.

Updated patch attached. (It's only the comment that has changed.)

Andrew
2006-10-26  Andrew Stubbs  <andrew.stubbs@st.com>

	* config/tc-sh.c (md_assemble): Define size of branches.

Index: src/gas/config/tc-sh.c
===================================================================
--- src.orig/gas/config/tc-sh.c	2006-10-26 17:27:32.000000000 +0100
+++ src/gas/config/tc-sh.c	2006-10-26 17:30:00.000000000 +0100
@@ -2865,6 +2865,9 @@ md_assemble (char *str)
 	    as_bad (_("Delayed branches not available on SH1"));
 	  parse_exp (op_end + 1, &operand[0]);
 	  build_relax (opcode, &operand[0]);
+
+	  /* All branches are currently 16 bit.  */
+	  size = 2;
 	}
       else
 	{

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