This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [SH] Line numbers and delayed branches
- From: Andrew STUBBS <andrew dot stubbs at st dot com>
- To: binutils at sourceware dot org
- Date: Thu, 26 Oct 2006 17:32:09 +0100
- Subject: Re: [SH] Line numbers and delayed branches
- References: <4540DEB5.20007@st.com>
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
{