* config/tc-sh.c (md_assemble): For branches, check & update

valid_arch here.
This commit is contained in:
Joern Rennecke 2003-07-30 20:34:26 +00:00
parent 7734b6e923
commit 26c9b70410
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
* config/tc-sh.c (md_assemble): For branches, check & update
valid_arch here.
2003-07-30 Jason Eckhardt <jle@rice.edu>
* config/tc-i860.c: Convert to ISO C90.

View File

@ -2383,6 +2383,12 @@ md_assemble (str)
if (opcode->arg[0] == A_BDISP12
|| opcode->arg[0] == A_BDISP8)
{
/* Since we skip get_specific here, we have to check & update
valid_arch now. */
if (valid_arch & opcode->arch)
valid_arch &= opcode->arch;
else
as_bad (_("Delayed branches not available on SH1"));
parse_exp (op_end + 1, &operand[0]);
build_relax (opcode, &operand[0]);
}