diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2020-07-26 14:43:21 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2020-07-26 14:43:21 +0100 |
commit | 3abf97582679343f1708252712e9254d3e0f132c (patch) | |
tree | 121245fd69b48bb39358006387274ca5c8289e54 /binutils/ChangeLog | |
parent | a237ab1af0c805298c319ca16004a606181c4bd2 (diff) | |
download | gdb-3abf97582679343f1708252712e9254d3e0f132c.zip gdb-3abf97582679343f1708252712e9254d3e0f132c.tar.gz gdb-3abf97582679343f1708252712e9254d3e0f132c.tar.bz2 |
MIPS/binutils/testsuite: Correct mips.exp test ABI/emul/endian arrangement
The binutils testsuite supports involving LD in processing test cases
and with the MIPS target that has the same issues the LD testsuite does.
So to support LD in the MIPS part of the binutils testsuite similarly
to commit 86b24e15c45b ("MIPS/LD/testsuite: Correct comm-data.exp test
ABI/emul/endian arrangement") update the mips.exp test script to:
- correctly select emulations for targets using non-traditional MIPS
emulations,
- correctly select ABIs for targets that do not support all of them,
- use the default endianness selection where possible to benefit targets
that support only one,
- simplify test invocation by providing ABI-specific `run_dump_test'
wrappers, specifically `run_dump_test_o32', `run_dump_test_n32' and
`run_dump_test_n64', which remove the need to use conditionals across
the Expect script or to repeat ABI-specific GAS and LD flags with each
invocation,
borrowing changes from commit 78da84f99405 ("MIPS/LD/testsuite: Correct
mips-elf.exp test ABI/emul/endian arrangement").
As a side effect this disables o32 ABI testing for targets that are not
supposed to support them and do not with LD, but still have such support
with BFD and GAS due to our inflexibility in configuration. Ultimately
we ought to support having o32 completely disabled.
binutils/
* testsuite/binutils-all/mips/mips.exp (run_dump_test_abi)
(run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New
procedures.
(has_newabi): Remove variable.
(has_abi, abi_asflags, abi_ldflags): New associative array
variables.
(irixemul): New variable.
Replace `run_dump_test' calls where applicable throughout with
`run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64'
as appropriate. Use `noarch' for tests that require their own
architecture setting.
* testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags.
* testsuite/binutils-all/mips/mips-ase-2.d: Likewise.
* testsuite/binutils-all/mips/mips-ase-3.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise.
* testsuite/binutils-all/mips/mips-note-2r.d: Likewise.
* testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise.
* testsuite/binutils-all/mips/mips-reginfo.d: Likewise.
* testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise.
* testsuite/binutils-all/mips/mips16-pcrel.d: Likewise.
* testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from
GAS flags.
* testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise.
* testsuite/binutils-all/mips/mips16-noalias.d: Likewise.
* testsuite/binutils-all/mips/mips16-undecoded.d: Likewise.
* testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise.
* testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise.
* testsuite/binutils-all/mips/mixed-micromips.d: Likewise.
* testsuite/binutils-all/mips/mixed-mips16.d: Likewise.
Diffstat (limited to 'binutils/ChangeLog')
-rw-r--r-- | binutils/ChangeLog | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e708db7..c308d89 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,39 @@ +2020-07-26 Maciej W. Rozycki <macro@linux-mips.org> + + * testsuite/binutils-all/mips/mips.exp (run_dump_test_abi) + (run_dump_test_o32, run_dump_test_n32, run_dump_test_n64): New + procedures. + (has_newabi): Remove variable. + (has_abi, abi_asflags, abi_ldflags): New associative array + variables. + (irixemul): New variable. + Replace `run_dump_test' calls where applicable throughout with + `run_dump_test_o32', `run_dump_test_n32' and `run_dump_test_n64' + as appropriate. Use `noarch' for tests that require their own + architecture setting. + * testsuite/binutils-all/mips/mips-ase-1.d: Remove GAS flags. + * testsuite/binutils-all/mips/mips-ase-2.d: Likewise. + * testsuite/binutils-all/mips/mips-ase-3.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2-n32.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2-n64.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2r-n32.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2r-n64.d: Likewise. + * testsuite/binutils-all/mips/mips-note-2r.d: Likewise. + * testsuite/binutils-all/mips/mips-reginfo-n32.d: Likewise. + * testsuite/binutils-all/mips/mips-reginfo.d: Likewise. + * testsuite/binutils-all/mips/mips16-extend-noinsn.d: Likewise. + * testsuite/binutils-all/mips/mips16-pcrel.d: Likewise. + * testsuite/binutils-all/mips/mips16-alias.d: Remove `-32' from + GAS flags. + * testsuite/binutils-all/mips/mips16-extend-insn.d: Likewise. + * testsuite/binutils-all/mips/mips16-noalias.d: Likewise. + * testsuite/binutils-all/mips/mips16-undecoded.d: Likewise. + * testsuite/binutils-all/mips/mips16e2-extend-insn.d: Likewise. + * testsuite/binutils-all/mips/mips16e2-undecoded.d: Likewise. + * testsuite/binutils-all/mips/mixed-micromips.d: Likewise. + * testsuite/binutils-all/mips/mixed-mips16.d: Likewise. + 2020-07-24 Aaron Merey <amerey@redhat.com> * Makefile.am: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. |