From: Tom Tromey Date: Sun, 8 Jul 2018 18:17:23 +0000 (-0600) Subject: Remove declarations from m32c-tdep.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=374fd1fd7b9bbefc15c003f14f4229ccbfc1bfc8;p=binutils-gdb.git Remove declarations from m32c-tdep.c This removes some unused declarations from m32c-tdep.c. Initially I had thought that this entire code block was dead, but Simon pointed out that it is not; so this patch simply removes some declarations. gdb/ChangeLog 2018-07-22 Tom Tromey * m32c-tdep.c (mark_dma): Return void. (make_regs): Remove unused declarations. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68edfcfca40..a05f459151d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-07-22 Tom Tromey + + * m32c-tdep.c (mark_dma): Return void. + (make_regs): Remove unused declarations. + 2018-07-22 Tom Tromey * guile/scm-cmd.c (gdbscm_dont_repeat): Call diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index f696568e3a7..fc6277ef5c1 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -689,12 +689,11 @@ mark_general (struct m32c_reg *reg) } -/* Mark REG as a DMA register, and return it. */ -static struct m32c_reg * +/* Mark REG as a DMA register. */ +static void mark_dma (struct m32c_reg *reg) { reg->dma_p = 1; - return reg; } @@ -841,16 +840,16 @@ make_regs (struct gdbarch *arch) if (mach == bfd_mach_m32c) { - struct m32c_reg *svf = S (R16U (svf)); - struct m32c_reg *svp = S (RC (svp)); - struct m32c_reg *vct = S (RC (vct)); - - struct m32c_reg *dmd01 = DMA (RP (dmd, tdep->uint8)); - struct m32c_reg *dct01 = DMA (RP (dct, tdep->uint16)); - struct m32c_reg *drc01 = DMA (RP (drc, tdep->uint16)); - struct m32c_reg *dma01 = DMA (RP (dma, tdep->data_addr_reg_type)); - struct m32c_reg *dsa01 = DMA (RP (dsa, tdep->data_addr_reg_type)); - struct m32c_reg *dra01 = DMA (RP (dra, tdep->data_addr_reg_type)); + S (R16U (svf)); + S (RC (svp)); + S (RC (vct)); + + DMA (RP (dmd, tdep->uint8)); + DMA (RP (dct, tdep->uint16)); + DMA (RP (drc, tdep->uint16)); + DMA (RP (dma, tdep->data_addr_reg_type)); + DMA (RP (dsa, tdep->data_addr_reg_type)); + DMA (RP (dra, tdep->data_addr_reg_type)); } num_raw_regs = tdep->num_regs;