Remove duplicate const

Building --enable-targets=all in C++ mode fails with:

  gdb/sparc-sol2-tdep.c:179:7: error: duplicate ‘const’
  gdb/arm-tdep.c:13878:33: error: duplicate ‘const’
  gdb/arm-tdep.c:13891:33: error: duplicate ‘const’

gdb/ChangeLog:
2015-02-27  Pedro Alves  <palves@redhat.com>

	* arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
	Remove duplicate const.
	* sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
	duplicate const.
This commit is contained in:
Pedro Alves 2014-10-22 05:58:23 +01:00
parent 7cf99fb1c7
commit 0fa9c223dd
3 changed files with 10 additions and 3 deletions

View file

@ -13811,7 +13811,7 @@ decode_insn (insn_decode_record *arm_record, record_type_t record_type,
{
/* (Starting from numerical 0); bits 25, 26, 27 decodes type of arm instruction. */
static const sti_arm_hdl_fp_t const arm_handle_insn[8] =
static const sti_arm_hdl_fp_t arm_handle_insn[8] =
{
arm_record_data_proc_misc_ld_str, /* 000. */
arm_record_data_proc_imm, /* 001. */
@ -13824,7 +13824,7 @@ decode_insn (insn_decode_record *arm_record, record_type_t record_type,
};
/* (Starting from numerical 0); bits 13,14,15 decodes type of thumb instruction. */
static const sti_arm_hdl_fp_t const thumb_handle_insn[8] =
static const sti_arm_hdl_fp_t thumb_handle_insn[8] =
{ \
thumb_record_shift_add_sub, /* 000. */
thumb_record_add_sub_cmp_mov, /* 001. */