From dcd709e056c6f4b7ffff759b9b6ecab1177083ed Mon Sep 17 00:00:00 2001 From: Nelson Chu Date: Wed, 13 Jan 2021 10:05:48 +0800 Subject: RISC-V: Comments tidy and improvement. The GNU coding standards said the comments should be complete sentences and end with a period and two spaces. But sometimes it should be more cleaner when the comments only include a word or codes. Therefore, I made the following changes after referring to other target/generic codes, * Try to write sentences in comments, must end with a period and two spaces. * End with two spaces without a period for codes/instructions only. * End with one space without a period for a single word/variable only. Besids, also rewrite/remove some comments which are obsolete or too long, and fix indents for comments. bfd/ * elfnn-riscv.c: Comments tidy and improvement. * elfxx-riscv.c: Likewise. * elfxx-riscv.h: Likewise. gas/ * config/tc-riscv.c: Comments tidy and improvement. Also update comment "fallthru" to "Fall through" that end with a period and two spaces. include/ * elf/riscv.h: Comments tidy and improvement. * opcode/riscv-opc.h: Likewise. * opcode/riscv.h: Likewise. opcodes/ * riscv-dis.c: Comments tidy and improvement. * riscv-opc.c: Likewise. --- include/elf/riscv.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/elf/riscv.h') diff --git a/include/elf/riscv.h b/include/elf/riscv.h index 3171767..fb376a0 100644 --- a/include/elf/riscv.h +++ b/include/elf/riscv.h @@ -118,10 +118,9 @@ END_RELOC_NUMBERS (R_RISCV_max) #define RISCV_GP_SYMBOL "__global_pointer$" /* Additional section types. */ -#define SHT_RISCV_ATTRIBUTES 0x70000003 /* Section holds attributes. */ +#define SHT_RISCV_ATTRIBUTES 0x70000003 /* Section holds attributes. */ /* Object attributes. */ - enum { /* 0-3 are generic. */ -- cgit v1.1