From: Timothy Wall Date: Thu, 17 Jan 2002 17:41:24 +0000 (+0000) Subject: Add a more instructive error message on bad syntax X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1ffc257459eb16255e5e35a95b1b753d517eb07;p=binutils-gdb.git Add a more instructive error message on bad syntax --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f6cb8e70063..83bb1603b2d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-01-17 Timothy Wall + + * config/tc-tic54x.c (encode_address): Add a more informative + warning about incorrect syntax. + 2002-01-17 Nick Clifton * po/gas.pot: Regenerate. diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index 094203a9afd..6e5462495b9 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; diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d6481ae51ef..5791ddbbd8b 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-01-17 Timothy Wall + + * gas/tic54x/labels.s (after_macro): Correct comments. + 2002-01-15 Richard Earnshaw * gas/arm/vfp1.s gas/arm/vf1.d: New files. diff --git a/gas/testsuite/gas/tic54x/labels.s b/gas/testsuite/gas/tic54x/labels.s index 47c3ea3e7da..464b6e8e736 100644 --- a/gas/testsuite/gas/tic54x/labels.s +++ b/gas/testsuite/gas/tic54x/labels.s @@ -38,7 +38,7 @@ lab? add #4,a ; line 31? * This reference should resolve to definition #3 after_macro: b lab? -* Section change clears all definitions; TI defaults to CODE section w/o name +* Section change clears all definitions; it's a CODE section if we see insns .sect new_section nop lab? add #5,a