aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-01-13 16:52:14 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-01-15 17:33:59 +0800
commitb800637e7631482d1bece2463b7c89e2d873d9d0 (patch)
tree05591e95c8750d698d4fdc9cb55eb5b01f89a1e8 /bfd
parentdcd709e056c6f4b7ffff759b9b6ecab1177083ed (diff)
downloadgdb-b800637e7631482d1bece2463b7c89e2d873d9d0.zip
gdb-b800637e7631482d1bece2463b7c89e2d873d9d0.tar.gz
gdb-b800637e7631482d1bece2463b7c89e2d873d9d0.tar.bz2
RISC-V: Error and warning messages tidy.
Error and warning messages usually starting with lower case letter, and without the period at the end. Besides, add the prefixed "internel:" at the beginning of the messages when they are caused internally. Also fix indents and typos. bfd/ * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages. gas/ * config/tc-riscv.c: Error and warning messages tidy. * testsuite/gas/riscv/priv-reg-fail-fext.l: Updated. * testsuite/gas/riscv/priv-reg-fail-read-only-01.l: Likewise. * testsuite/gas/riscv/priv-reg-fail-read-only-02.l: Likewise. * testsuite/gas/riscv/priv-reg-fail-rv32-only.l: Likewise. * testsuite/gas/riscv/priv-reg-fail-version-1p10.l: Likewise. * testsuite/gas/riscv/priv-reg-fail-version-1p11.l: Likewise. * testsuite/gas/riscv/priv-reg-fail-version-1p9p1.l: Likewise. ld/ * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated. * 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. opcodes/ * riscv-dis.c (parse_riscv_dis_option): Fix typos of message.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elfnn-riscv.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 3f349ac1..37897cf 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2021-01-15 Nelson Chu <nelson.chu@sifive.com>
+ * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
+
+2021-01-15 Nelson Chu <nelson.chu@sifive.com>
+
* elfnn-riscv.c: Comments tidy and improvement.
* elfxx-riscv.c: Likewise.
* elfxx-riscv.h: Likewise.
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index c0864c9..8b9819b 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -3704,7 +3704,7 @@ riscv_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
&& in_priv_spec != out_priv_spec)
{
_bfd_error_handler
- (_("warning: %pB use privilege spec version %u.%u.%u but "
+ (_("warning: %pB use privileged spec version %u.%u.%u but "
"the output use version %u.%u.%u"),
ibfd,
in_attr[Tag_a].i,
@@ -3721,7 +3721,7 @@ riscv_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
|| out_priv_spec == PRIV_SPEC_CLASS_1P9P1)
{
_bfd_error_handler
- (_("warning: privilege spec version 1.9.1 can not be "
+ (_("warning: privileged spec version 1.9.1 can not be "
"linked with other spec versions"));
}