aboutsummaryrefslogtreecommitdiff
path: root/gas
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 /gas
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 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-s12z.c28
-rw-r--r--gas/config/tc-xtensa.c2
-rw-r--r--gas/config/tc-z80.c1
4 files changed, 17 insertions, 20 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index af34ad8..a498748 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+2020-06-29 Alan Modra <amodra@gmail.com>
+
+ * 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.
+
2020-06-26 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (md_assemble): Process ImmExt without
diff --git a/gas/config/tc-s12z.c b/gas/config/tc-s12z.c
index 91480de..d89fb0c 100644
--- a/gas/config/tc-s12z.c
+++ b/gas/config/tc-s12z.c
@@ -1325,20 +1325,20 @@ mul_reg_opr_opr (const struct instruction *insn)
static const uint8_t reg_map [] =
{
- 0x02, // D2
- 0x01, // D3
+ 0x02, /* D2 */
+ 0x01, /* D3 */
0x20,
- 0x10, // D5
- 0x08, // D0
- 0x04, // D1
- 0x08, // D6
- 0x04, // D7
+ 0x10, /* D5 */
+ 0x08, /* D0 */
+ 0x04, /* D1 */
+ 0x08, /* D6 */
+ 0x04, /* D7 */
0x02,
- 0x01, // Y
+ 0x01, /* Y */
0x00,
0x00,
- 0x20, // CCH
- 0x10, // CCL
+ 0x20, /* CCH */
+ 0x10, /* CCL */
0x00
};
@@ -3595,8 +3595,6 @@ static const struct instruction opcodes[] = {
{"divu.lp", 2, 0x30, mul_reg_opr_opr, 0},
{"divu.ll", 2, 0x30, mul_reg_opr_opr, 0},
- //
-
{"qmuls", 2, 0xb0, mul_reg_reg_reg, 0},
{"qmulu", 2, 0xb0, mul_reg_reg_reg, 0},
@@ -3656,9 +3654,6 @@ static const struct instruction opcodes[] = {
{"qmulu.lp", 2, 0xb0, mul_reg_opr_opr, 0},
{"qmulu.ll", 2, 0xb0, mul_reg_opr_opr, 0},
-
- //
-
{"macs", 2, 0x48, mul_reg_reg_reg, 0},
{"macu", 2, 0x48, mul_reg_reg_reg, 0},
@@ -3718,9 +3713,6 @@ static const struct instruction opcodes[] = {
{"macu.lp", 2, 0x48, mul_reg_opr_opr, 0},
{"macu.ll", 2, 0x48, mul_reg_opr_opr, 0},
-
- //
-
{"mods", 2, 0x38, mul_reg_reg_reg, 0},
{"modu", 2, 0x38, mul_reg_reg_reg, 0},
diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index b512f7a..e4a234a 100644
--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -7882,7 +7882,7 @@ dump_litpools (void)
printf(" %ld <%d:%d> (%d) [%d]: ",
lpf->addr, lpf->priority, lpf->original_priority,
lpf->fragP->fr_line, count);
- //dump_frag(lpf->fragP);
+ /* dump_frag(lpf->fragP); */
}
}
}
diff --git a/gas/config/tc-z80.c b/gas/config/tc-z80.c
index 59cda3d..d9a8aa5 100644
--- a/gas/config/tc-z80.c
+++ b/gas/config/tc-z80.c
@@ -2390,7 +2390,6 @@ emit_ld_r_n (expressionS *dst, expressionS *src)
break;
default:
ill_op ();
-// return;
}
q = frag_more (prefix ? 2 : 1);