2006-10-27 Andrew Stubbs <andrew.stubbs@st.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Fri, 27 Oct 2006 09:34:45 +0000 (09:34 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Fri, 27 Oct 2006 09:34:45 +0000 (09:34 +0000)
* config/tc-sh.c (md_assemble): Define size of branches.

gas/ChangeLog
gas/config/tc-sh.c

index 0a08ce946526b531054ad885bac08052fbeb37ae..17226e776ba4eabe899d95faef816f0f6a3c4a5b 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-27  Andrew Stubbs  <andrew.stubbs@st.com>
+
+       * config/tc-sh.c (md_assemble): Define size of branches.
+
 2006-10-26  Ben Elliston  <bje@au.ibm.com>
 
        * dw2gencfi.c (cfi_add_CFA_offset):
index 1abbaad09fba3ac2fbf9917d454c2282bfb9793e..3d1ae79d76981d26bb39c9c4237ace3bdd5a02c0 100644 (file)
@@ -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
        {