aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-tic54x.c
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2002-01-17 17:41:24 +0000
committerTimothy Wall <twall@alum.mit.edu>2002-01-17 17:41:24 +0000
commitb1ffc257459eb16255e5e35a95b1b753d517eb07 (patch)
tree2e725ac535484e10627b3ccd77db8700a14a745e /gas/config/tc-tic54x.c
parent6c6fb00d71c3d02c0083629b282526ca0adc2f21 (diff)
downloadgdb-b1ffc257459eb16255e5e35a95b1b753d517eb07.zip
gdb-b1ffc257459eb16255e5e35a95b1b753d517eb07.tar.gz
gdb-b1ffc257459eb16255e5e35a95b1b753d517eb07.tar.bz2
Add a more instructive error message on bad syntax
Diffstat (limited to 'gas/config/tc-tic54x.c')
-rw-r--r--gas/config/tc-tic54x.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c
index 094203a..6e54624 100644
--- a/gas/config/tc-tic54x.c
+++ b/gas/config/tc-tic54x.c
@@ -3654,6 +3654,9 @@ encode_address (insn, operand)
insn->opcode[0].word |= (operand->exp.X_add_number & 0x7F);
else
{
+ if (operand->exp.X_op == O_register) {
+ as_bad(_("Use the .mmregs directive to use memory-mapped register names such as '%s'"), operand->buf);
+ }
/* Do the fixup later; just store the expression. */
insn->opcode[0].r_nchars = 1;
insn->opcode[0].r_type = BFD_RELOC_TIC54X_PARTLS7;