aboutsummaryrefslogtreecommitdiff
path: root/binutils
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 /binutils
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 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c8
-rw-r--r--binutils/resrc.c2
3 files changed, 10 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 13d9c3e..657bc95 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-06-29 Alan Modra <amodra@gmail.com>
+
+ * dwarf.c: Use C style comments.
+ * resrc.c: Likewise.
+
2020-06-27 Alan Modra <amodra@gmail.com>
* elfcomm.c (setup_nested_archive): Set nested_arch->file to NULL
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index e2f217e..6e61bfd 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -9216,10 +9216,10 @@ display_debug_names (struct dwarf_section *section, void *file)
unsigned char *entryptr = entry_pool + entry_offset;
- // We need to scan first whether there is a single or multiple
- // entries. TAGNO is -2 for the first entry, it is -1 for the
- // initial tag read of the second entry, then it becomes 0 for the
- // first entry for real printing etc.
+ /* We need to scan first whether there is a single or multiple
+ entries. TAGNO is -2 for the first entry, it is -1 for the
+ initial tag read of the second entry, then it becomes 0 for the
+ first entry for real printing etc. */
int tagno = -2;
/* Initialize it due to a false compiler warning. */
dwarf_vma second_abbrev_tag = -1;
diff --git a/binutils/resrc.c b/binutils/resrc.c
index 1d43355..a875c3a 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -674,7 +674,7 @@ get_long (FILE *e, const char *msg)
static void
get_data (FILE *e, bfd_byte *p, rc_uint_type c, const char *msg)
{
- rc_uint_type got; // $$$d
+ rc_uint_type got; /* $$$d */
got = (rc_uint_type) fread (p, 1, c, e);
if (got == c)