diff options
author | Timothy Wall <twall@alum.mit.edu> | 2002-01-17 17:41:24 +0000 |
---|---|---|
committer | Timothy Wall <twall@alum.mit.edu> | 2002-01-17 17:41:24 +0000 |
commit | b1ffc257459eb16255e5e35a95b1b753d517eb07 (patch) | |
tree | 2e725ac535484e10627b3ccd77db8700a14a745e /gas/config/tc-tic54x.c | |
parent | 6c6fb00d71c3d02c0083629b282526ca0adc2f21 (diff) | |
download | gdb-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.c | 3 |
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; |