aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-06-29 10:07:56 +0930
committerAlan Modra <amodra@gmail.com>2020-06-29 10:07:56 +0930
commit279edac53db8fa6482ee3e305c9627f788fd2699 (patch)
treee56013c9acfbfcf19fa97c37555677fe7e1fff3f /include
parent290a25dc2da6f1069f53a063ba8167bd9baf7f9c (diff)
downloadgdb-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 'include')
-rw-r--r--include/ChangeLog6
-rw-r--r--include/coff/internal.h2
-rw-r--r--include/coff/pe.h8
-rw-r--r--include/elf/ppc64.h4
4 files changed, 13 insertions, 7 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index dc7089e..850da73 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2020-06-29 Alan Modra <amodra@gmail.com>
+
+ * coff/internal.h: Use C style comments.
+ * coff/pe.h: Likewise.
+ * elf/ppc64.h: Likewise.
+
2020-06-26 Nick Alcock <nick.alcock@oracle.com>
* ctf-api.h (ctf_arc_bufopen): New.
diff --git a/include/coff/internal.h b/include/coff/internal.h
index 2b6c08c..9f62699 100644
--- a/include/coff/internal.h
+++ b/include/coff/internal.h
@@ -161,7 +161,7 @@ typedef struct _CODEVIEW_INFO
char Signature[CV_INFO_SIGNATURE_LENGTH];
unsigned int SignatureLength;
unsigned long Age;
- // char PdbFileName[];
+ /* char PdbFileName[]; */
} CODEVIEW_INFO;
/* Default image base for NT. */
diff --git a/include/coff/pe.h b/include/coff/pe.h
index efb7075..c83a958 100644
--- a/include/coff/pe.h
+++ b/include/coff/pe.h
@@ -578,10 +578,10 @@ struct external_IMAGE_DEBUG_DIRECTORY
/* Extra structures used in codeview debug record. */
/* This is not part of the PE specification. */
-#define CVINFO_PDB70_CVSIGNATURE 0x53445352 // "RSDS"
-#define CVINFO_PDB20_CVSIGNATURE 0x3031424e // "NB10"
-#define CVINFO_CV50_CVSIGNATURE 0x3131424e // "NB11"
-#define CVINFO_CV41_CVSIGNATURE 0x3930424e // "NB09"
+#define CVINFO_PDB70_CVSIGNATURE 0x53445352 /* "RSDS" */
+#define CVINFO_PDB20_CVSIGNATURE 0x3031424e /* "NB10" */
+#define CVINFO_CV50_CVSIGNATURE 0x3131424e /* "NB11" */
+#define CVINFO_CV41_CVSIGNATURE 0x3930424e /* "NB09" */
typedef struct _CV_INFO_PDB70
{
diff --git a/include/elf/ppc64.h b/include/elf/ppc64.h
index f7034ec..f3e478f 100644
--- a/include/elf/ppc64.h
+++ b/include/elf/ppc64.h
@@ -256,14 +256,14 @@ END_RELOC_NUMBERS (R_PPC64_max)
#define STO_PPC64_LOCAL_BIT 5
#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT)
-// 3 bit other field to bytes.
+/* 3 bit other field to bytes. */
static inline unsigned int
ppc64_decode_local_entry(unsigned int other)
{
return ((1 << other) >> 2) << 2;
}
-// bytes to field value.
+/* bytes to field value. */
static inline unsigned int
ppc64_encode_local_entry(unsigned int val)
{