diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-29 10:07:56 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-29 10:07:56 +0930 |
commit | 279edac53db8fa6482ee3e305c9627f788fd2699 (patch) | |
tree | e56013c9acfbfcf19fa97c37555677fe7e1fff3f /bfd | |
parent | 290a25dc2da6f1069f53a063ba8167bd9baf7f9c (diff) | |
download | gdb-279edac53db8fa6482ee3e305c9627f788fd2699.zip gdb-279edac53db8fa6482ee3e305c9627f788fd2699.tar.gz gdb-279edac53db8fa6482ee3e305c9627f788fd2699.tar.bz2 |
C++ comments
binutils isn't c99 (yet). This replaces or removes some C++ style
comments.
bfd/
* arc-got.h: Use C style comments.
* coff-z80.c: Likewise.
* elf32-csky.c: Likewise.
* peXXigen.c: Likewise.
* elf32-m32c.c (m32c_elf_relax_delete_bytes): Remove commented out
code.
binutils/
* dwarf.c: Use C style comments.
* resrc.c: Likewise.
gas/
* config/tc-s12z.c: Use C style comments.
* config/tc-z80.c: Likewise.
* config/tc-xtensa.c (emit_ld_r_n): Remove commented out code.
include/
* coff/internal.h: Use C style comments.
* coff/pe.h: Likewise.
* elf/ppc64.h: Likewise.
opcodes/
* arm-dis.c: Use C style comments.
* cr16-opc.c: Likewise.
* ft32-dis.c: Likewise.
* moxie-opc.c: Likewise.
* tic54x-dis.c: Likewise.
* s12z-opc.c: Remove useless comment.
* xgate-dis.c: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/arc-got.h | 2 | ||||
-rw-r--r-- | bfd/coff-z80.c | 4 | ||||
-rw-r--r-- | bfd/elf32-csky.c | 4 | ||||
-rw-r--r-- | bfd/elf32-m32c.c | 1 | ||||
-rw-r--r-- | bfd/peXXigen.c | 10 |
6 files changed, 19 insertions, 11 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7b6375a..4a87b3b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,12 @@ +2020-06-29 Alan Modra <amodra@gmail.com> + + * arc-got.h: Use C style comments. + * coff-z80.c: Likewise. + * elf32-csky.c: Likewise. + * peXXigen.c: Likewise. + * elf32-m32c.c (m32c_elf_relax_delete_bytes): Remove commented out + code. + 2020-06-26 Pat Bernardi <bernardi@adacore.com> * elf32-m68k.c (m68k_elf_merge_obj_attributes): New function. diff --git a/bfd/arc-got.h b/bfd/arc-got.h index 762d84d..8053a2d 100644 --- a/bfd/arc-got.h +++ b/bfd/arc-got.h @@ -296,7 +296,7 @@ relocate_fix_got_relocs_for_got_info (struct got_entry ** list_p, if (h != NULL) { - // TODO: This should not be here. + /* TODO: This should not be here. */ reloc_data->sym_value = h->root.u.def.value; reloc_data->sym_section = h->root.u.def.section; diff --git a/bfd/coff-z80.c b/bfd/coff-z80.c index 8913fb5..16f83cf 100644 --- a/bfd/coff-z80.c +++ b/bfd/coff-z80.c @@ -373,7 +373,7 @@ extra_case (bfd *in_abfd, case R_IMM8: if (reloc->howto->partial_inplace) val += bfd_get_8 ( in_abfd, data+*src_ptr) & reloc->howto->src_mask; - //fallthrough + /* Fall through. */ case R_BYTE0: bfd_put_8 (in_abfd, val, data + *dst_ptr); (*dst_ptr) += 1; @@ -389,7 +389,7 @@ extra_case (bfd *in_abfd, case R_IMM16: if (reloc->howto->partial_inplace) val += bfd_get_16 ( in_abfd, data+*src_ptr) & reloc->howto->src_mask; - //fallthrough + /* Fall through. */ case R_WORD0: bfd_put_16 (in_abfd, val, data + *dst_ptr); (*dst_ptr) += 2; diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c index ea58e14..669284b 100644 --- a/bfd/elf32-csky.c +++ b/bfd/elf32-csky.c @@ -3738,8 +3738,8 @@ csky_relocate_contents (reloc_howto_type *howto, /* FIXME: these macros should be defined at file head or head file head. */ #define CSKY_INSN_ADDI_TO_SUBI 0x04000000 -#define CSKY_INSN_MOV_RTB 0xc41d4820 // mov32 rx, r29, 0 -#define CSKY_INSN_MOV_RDB 0xc41c4820 // mov32 rx, r28, 0 +#define CSKY_INSN_MOV_RTB 0xc41d4820 /* mov32 rx, r29, 0 */ +#define CSKY_INSN_MOV_RDB 0xc41c4820 /* mov32 rx, r28, 0 */ #define CSKY_INSN_GET_ADDI_RZ(x) (((x) & 0x03e00000) >> 21) #define CSKY_INSN_SET_MOV_RZ(x) ((x) & 0x0000001f) #define CSKY_INSN_JSRI_TO_LRW 0xea9a0000 diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c index 7a97d6d..d839f62 100644 --- a/bfd/elf32-m32c.c +++ b/bfd/elf32-m32c.c @@ -2072,7 +2072,6 @@ m32c_elf_relax_delete_bytes symcount = (symtab_hdr->sh_size / sizeof (Elf32_External_Sym) - symtab_hdr->sh_info); sym_hashes = elf_sym_hashes (abfd); - // sym_hashes += symtab_hdr->sh_info; end_hashes = sym_hashes + symcount; for (; sym_hashes < end_hashes; sym_hashes ++) diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index c33c495..b3b6808 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -1176,7 +1176,7 @@ _bfd_XXi_slurp_codeview_record (bfd * abfd, file_ptr where, unsigned long length memcpy (&(cvinfo->Signature[8]), &(cvinfo70->Signature[8]), 8); cvinfo->SignatureLength = CV_INFO_SIGNATURE_LENGTH; - // cvinfo->PdbFileName = cvinfo70->PdbFileName; + /* cvinfo->PdbFileName = cvinfo70->PdbFileName; */ return cvinfo; } @@ -1187,7 +1187,7 @@ _bfd_XXi_slurp_codeview_record (bfd * abfd, file_ptr where, unsigned long length cvinfo->Age = H_GET_32(abfd, cvinfo20->Age); memcpy (cvinfo->Signature, cvinfo20->Signature, 4); cvinfo->SignatureLength = 4; - // cvinfo->PdbFileName = cvinfo20->PdbFileName; + /* cvinfo->PdbFileName = cvinfo20->PdbFileName; */ return cvinfo; } @@ -2929,7 +2929,7 @@ _bfd_XX_print_private_bfd_data_common (bfd * abfd, void * vfile) case IMAGE_SUBSYSTEM_WINDOWS_CE_GUI: subsystem_name = "Wince CUI"; break; - // These are from UEFI Platform Initialization Specification 1.1. + /* These are from UEFI Platform Initialization Specification 1.1. */ case IMAGE_SUBSYSTEM_EFI_APPLICATION: subsystem_name = "EFI application"; break; @@ -2942,11 +2942,11 @@ _bfd_XX_print_private_bfd_data_common (bfd * abfd, void * vfile) case IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER: subsystem_name = "SAL runtime driver"; break; - // This is from revision 8.0 of the MS PE/COFF spec + /* This is from revision 8.0 of the MS PE/COFF spec */ case IMAGE_SUBSYSTEM_XBOX: subsystem_name = "XBOX"; break; - // Added default case for clarity - subsystem_name is NULL anyway. + /* Added default case for clarity - subsystem_name is NULL anyway. */ default: subsystem_name = NULL; } |