diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-sh.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index d1af70a..dd7e3b1 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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. diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 16677f8..d147df6 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -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]); } |