aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10200.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2017-05-15 13:09:37 +0100
committerMaciej W. Rozycki <macro@imgtec.com>2017-05-15 13:57:08 +0100
commite295202f606accec7623c961997a295a8e680247 (patch)
tree8b20ee6b5aaa943898b48fab2078fb74336480e6 /gas/config/tc-mn10200.c
parentc76081bc874d7d41eb6f41ea79a4ac0f906467d0 (diff)
downloadgdb-e295202f606accec7623c961997a295a8e680247.zip
gdb-e295202f606accec7623c961997a295a8e680247.tar.gz
gdb-e295202f606accec7623c961997a295a8e680247.tar.bz2
MIPS16/GAS: Improve disallowed relocation operand error diagnostics
Improve disallowed relocation operand error diagnostics for MIPS16 code and make it match corresponding regular MIPS and microMIPS handling, e.g: $ cat sltu.s sltu $2, %lo(foo) $ as -o sltu.o sltu.s sltu.s: Assembler messages: sltu.s:1: Error: operand 2 must be constant `sltu $2,%lo(foo)' $ as -mips16 -o sltu.o sltu.s sltu.s: Assembler messages: sltu.s:1: Error: invalid operands `sltu $2,%lo(foo)' $ To do so call `match_not_constant' from `match_mips16_insn' whenever a disallowed relocation operation has been noticed, like `match_const_int' does, making reporting consistent: $ as -mips16 -o sltu.o sltu.s sltu.s: Assembler messages: sltu.s:1: Error: operand 2 must be constant `sltu $2,%lo(foo)' $ gas/ * config/tc-mips.c (match_mips16_insn): Call `match_not_constant' for a disallowed relocation operation. * testsuite/gas/mips/mips16-reloc-error.d: New test. * testsuite/gas/mips/mips16-reloc-error.l: New stderr output. * testsuite/gas/mips/mips16-reloc-error.s: New test source. * testsuite/gas/mips/mips.exp: Run the new test.
Diffstat (limited to 'gas/config/tc-mn10200.c')
0 files changed, 0 insertions, 0 deletions