diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-07-30 20:34:26 +0000 |
---|---|---|
committer | Joern Rennecke <joern.rennecke@embecosm.com> | 2003-07-30 20:34:26 +0000 |
commit | 26c9b704106607f6fe37eab8036bb2c04f32375a (patch) | |
tree | 2450a0ffb1525e4d0234445fde2d4a9c0c9fdf14 /gas/config | |
parent | 7734b6e9232563605048be616983d3644ccaa084 (diff) | |
download | gdb-26c9b704106607f6fe37eab8036bb2c04f32375a.zip gdb-26c9b704106607f6fe37eab8036bb2c04f32375a.tar.gz gdb-26c9b704106607f6fe37eab8036bb2c04f32375a.tar.bz2 |
* config/tc-sh.c (md_assemble): For branches, check & update
valid_arch here.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-sh.c | 6 |
1 files changed, 6 insertions, 0 deletions
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]); } |