RISC-V: Minor cleanup and typos when merging elf attributes.
authorNelson Chu <nelson.chu@sifive.com>
Wed, 19 Aug 2020 03:49:24 +0000 (11:49 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Thu, 3 Sep 2020 03:12:02 +0000 (11:12 +0800)
commit9184ef8a92371746d0f36580adf2ad6845f1ced3
tree90ba667de441c9cb945525db043b0e802b4b174c
parent32f0ce4db98eb1e8e1cc326d3a22ef0c436ae6fe
RISC-V: Minor cleanup and typos when merging elf attributes.

bfd/
* elfnn-riscv.c (riscv_i_or_e_p): Minor cleanup for warnings/errors.
(riscv_merge_std_ext): Likewise.
(riscv_merge_arch_attr_info): Likewise.
(riscv_merge_attributes): Likewise and fix comment typos.

ld/
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove
the useless `warnings` keywords.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
bfd/ChangeLog
bfd/elfnn-riscv.c
ld/ChangeLog
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d
ld/testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d