gas/
authorRichard Sandiford <rdsandiford@googlemail.com>
Sun, 2 Feb 2003 19:37:20 +0000 (19:37 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Sun, 2 Feb 2003 19:37:20 +0000 (19:37 +0000)
commit5e0116d519c197dbd989e07c5e011e7a0dfd73c7
tree26d7d8895bd7d0340a4d334d2598a6326243ccd4
parent5f601589e1e0dad6276d458d25c818ff6458b3f3
gas/
* config/tc-mips.c (enum small_ex_type): Remove.
(imm_unmatched_hi): Remove.
(md_assemble): Remove use of imm_unmatched_hi.  Remove the last
argument from calls to append_insn.
(append_insn): Remove unmatched_hi parameter; check reloc_type[0]
instead.
(macro_build): Update append_insn calls.
(mips16_macro_build, macro_build_lui): Likewise.
(mips_ip): Rework handling of small expressions.  Move explicit
relocation handling into my_getSmallExpression.  Assume that the
value of 'o' operands is zero if there is only one bracketed
expression left.
(percent_op): Make constant.  Record the BFD relocation code
associated with each operator.
(my_getSmallParser, my_getPercentOp): Remove.
(parse_relocation): New function.
(my_getSamllExpression): Rework.  Fill in relocations here
rather than in mips_ip.

gas/testsuite
* gas/mips/elf-rel8.[sd], gas/mips/elf-rel9.[sd],
gas/mips/elf-rel10.[sd], gas/mips/elf-rel11.[sd]: New tests.
* gas/mips/mips.exp: Run elf-rel8 and elf-rel9 for all elf
targets.  Run elf-rel10 and elf-rel11 for NewABI targets.
12 files changed:
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/elf-rel10.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel10.s [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel11.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel11.s [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel8.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel8.s [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel9.d [new file with mode: 0644]
gas/testsuite/gas/mips/elf-rel9.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp