aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2003-07-30 20:34:26 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>2003-07-30 20:34:26 +0000
commit26c9b704106607f6fe37eab8036bb2c04f32375a (patch)
tree2450a0ffb1525e4d0234445fde2d4a9c0c9fdf14 /gas
parent7734b6e9232563605048be616983d3644ccaa084 (diff)
downloadgdb-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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-sh.c6
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]);
}