* config/tc-arm.c, config/tc-arm.h (tc_arm_regname_to_dw2regnum):
Un-constify string argument. * config/tc-i386.c, config/tc-i386.h (tc_x86_regname_to_dw2regnum): Likewise. * config/tc-m68k.c, config/tc-m68k.h (tc_m68k_regname_to_dw2regnum): Likewise. * config/tc-ppc.c, config/tc-ppc.h (tc_ppc_regname_to_dw2regnum): Likewise. * config/tc-s390.c, config/tc-s390.h (tc_s390_regname_to_dw2regnum): Likewise. * config/tc-sh.c, config/tc-sh.h (sh_regname_to_dw2regnum): Likewise. * config/tc-sparc.c, config/tc-sparc.h (sparc_regname_to_dw2regnum): Likewise. -------------------------------------------------------------------
This commit is contained in:
parent
377260ba3a
commit
1df69f4f6c
15 changed files with 32 additions and 15 deletions
|
@ -1,3 +1,20 @@
|
||||||
|
2006-05-19 Thiemo Seufer <ths@mips.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c, config/tc-arm.h (tc_arm_regname_to_dw2regnum):
|
||||||
|
Un-constify string argument.
|
||||||
|
* config/tc-i386.c, config/tc-i386.h (tc_x86_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
* config/tc-m68k.c, config/tc-m68k.h (tc_m68k_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
* config/tc-ppc.c, config/tc-ppc.h (tc_ppc_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
* config/tc-s390.c, config/tc-s390.h (tc_s390_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
* config/tc-sh.c, config/tc-sh.h (sh_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
* config/tc-sparc.c, config/tc-sparc.h (sparc_regname_to_dw2regnum):
|
||||||
|
Likewise.
|
||||||
|
|
||||||
2006-05-19 Nathan Sidwell <nathan@codesourcery.com>
|
2006-05-19 Nathan Sidwell <nathan@codesourcery.com>
|
||||||
|
|
||||||
* gas/config/tc-m68k.c (m68k_init_arch): Move checking of
|
* gas/config/tc-m68k.c (m68k_init_arch): Move checking of
|
||||||
|
|
|
@ -15601,9 +15601,9 @@ create_unwind_entry (int have_data)
|
||||||
/* Convert REGNAME to a DWARF-2 register number. */
|
/* Convert REGNAME to a DWARF-2 register number. */
|
||||||
|
|
||||||
int
|
int
|
||||||
tc_arm_regname_to_dw2regnum (const char *regname)
|
tc_arm_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
int reg = arm_reg_parse ((char **) ®name, REG_TYPE_RN);
|
int reg = arm_reg_parse (®name, REG_TYPE_RN);
|
||||||
|
|
||||||
if (reg == FAIL)
|
if (reg == FAIL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -244,5 +244,5 @@ extern void arm_init_frag (struct frag *);
|
||||||
extern void arm_handle_align (struct frag *);
|
extern void arm_handle_align (struct frag *);
|
||||||
extern bfd_boolean arm_fix_adjustable (struct fix *);
|
extern bfd_boolean arm_fix_adjustable (struct fix *);
|
||||||
extern int arm_elf_section_type (const char *, size_t);
|
extern int arm_elf_section_type (const char *, size_t);
|
||||||
extern int tc_arm_regname_to_dw2regnum (const char *regname);
|
extern int tc_arm_regname_to_dw2regnum (char *regname);
|
||||||
extern void tc_arm_frame_initial_instructions (void);
|
extern void tc_arm_frame_initial_instructions (void);
|
||||||
|
|
|
@ -7173,7 +7173,7 @@ intel_putback_token ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tc_x86_regname_to_dw2regnum (const char *regname)
|
tc_x86_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
unsigned int regnum;
|
unsigned int regnum;
|
||||||
unsigned int regnames_count;
|
unsigned int regnames_count;
|
||||||
|
|
|
@ -488,7 +488,7 @@ extern int x86_cie_data_alignment;
|
||||||
#define DWARF2_CIE_DATA_ALIGNMENT x86_cie_data_alignment
|
#define DWARF2_CIE_DATA_ALIGNMENT x86_cie_data_alignment
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum tc_x86_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum tc_x86_regname_to_dw2regnum
|
||||||
extern int tc_x86_regname_to_dw2regnum PARAMS ((const char *regname));
|
extern int tc_x86_regname_to_dw2regnum PARAMS ((char *regname));
|
||||||
|
|
||||||
#define tc_cfi_frame_initial_instructions tc_x86_frame_initial_instructions
|
#define tc_cfi_frame_initial_instructions tc_x86_frame_initial_instructions
|
||||||
extern void tc_x86_frame_initial_instructions PARAMS ((void));
|
extern void tc_x86_frame_initial_instructions PARAMS ((void));
|
||||||
|
|
|
@ -7562,7 +7562,7 @@ m68k_elf_final_processing (void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
tc_m68k_regname_to_dw2regnum (const char *regname)
|
tc_m68k_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
unsigned int regnum;
|
unsigned int regnum;
|
||||||
static const char *const regnames[] =
|
static const char *const regnames[] =
|
||||||
|
|
|
@ -174,7 +174,7 @@ extern struct relax_type md_relax_table[];
|
||||||
#define DWARF2_CIE_DATA_ALIGNMENT (-4)
|
#define DWARF2_CIE_DATA_ALIGNMENT (-4)
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum tc_m68k_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum tc_m68k_regname_to_dw2regnum
|
||||||
extern int tc_m68k_regname_to_dw2regnum (const char *regname);
|
extern int tc_m68k_regname_to_dw2regnum (char *regname);
|
||||||
|
|
||||||
#define tc_cfi_frame_initial_instructions tc_m68k_frame_initial_instructions
|
#define tc_cfi_frame_initial_instructions tc_m68k_frame_initial_instructions
|
||||||
extern void tc_m68k_frame_initial_instructions (void);
|
extern void tc_m68k_frame_initial_instructions (void);
|
||||||
|
|
|
@ -6078,7 +6078,7 @@ ppc_cfi_frame_initial_instructions ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tc_ppc_regname_to_dw2regnum (const char *regname)
|
tc_ppc_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
unsigned int regnum = -1;
|
unsigned int regnum = -1;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
|
@ -259,7 +259,7 @@ extern int ppc_parse_name PARAMS ((const char *, struct expressionS *));
|
||||||
extern void ppc_cfi_frame_initial_instructions PARAMS ((void));
|
extern void ppc_cfi_frame_initial_instructions PARAMS ((void));
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum tc_ppc_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum tc_ppc_regname_to_dw2regnum
|
||||||
extern int tc_ppc_regname_to_dw2regnum PARAMS ((const char *regname));
|
extern int tc_ppc_regname_to_dw2regnum PARAMS ((char *regname));
|
||||||
|
|
||||||
extern int ppc_cie_data_alignment;
|
extern int ppc_cie_data_alignment;
|
||||||
|
|
||||||
|
|
|
@ -2322,7 +2322,7 @@ s390_cfi_frame_initial_instructions ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
tc_s390_regname_to_dw2regnum (const char *regname)
|
tc_s390_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
int regnum = -1;
|
int regnum = -1;
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ extern void s390_md_end PARAMS ((void));
|
||||||
extern void s390_cfi_frame_initial_instructions PARAMS ((void));
|
extern void s390_cfi_frame_initial_instructions PARAMS ((void));
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum tc_s390_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum tc_s390_regname_to_dw2regnum
|
||||||
extern int tc_s390_regname_to_dw2regnum PARAMS ((const char *regname));
|
extern int tc_s390_regname_to_dw2regnum PARAMS ((char *regname));
|
||||||
|
|
||||||
extern int s390_cie_data_alignment;
|
extern int s390_cie_data_alignment;
|
||||||
|
|
||||||
|
|
|
@ -4382,7 +4382,7 @@ sh_cfi_frame_initial_instructions (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
sh_regname_to_dw2regnum (const char *regname)
|
sh_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
unsigned int regnum = -1;
|
unsigned int regnum = -1;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
|
@ -225,7 +225,7 @@ void sh_cons_fix_new (fragS *, int, int, expressionS *);
|
||||||
extern void sh_cfi_frame_initial_instructions (void);
|
extern void sh_cfi_frame_initial_instructions (void);
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum sh_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum sh_regname_to_dw2regnum
|
||||||
extern int sh_regname_to_dw2regnum (const char *regname);
|
extern int sh_regname_to_dw2regnum (char *regname);
|
||||||
|
|
||||||
/* All SH instructions are multiples of 16 bits. */
|
/* All SH instructions are multiples of 16 bits. */
|
||||||
#define DWARF2_LINE_MIN_INSN_LENGTH 2
|
#define DWARF2_LINE_MIN_INSN_LENGTH 2
|
||||||
|
|
|
@ -4602,7 +4602,7 @@ sparc_cfi_frame_initial_instructions ()
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
sparc_regname_to_dw2regnum (const char *regname)
|
sparc_regname_to_dw2regnum (char *regname)
|
||||||
{
|
{
|
||||||
char *p, *q;
|
char *p, *q;
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ extern void cons_fix_new_sparc
|
||||||
extern void sparc_cfi_frame_initial_instructions PARAMS ((void));
|
extern void sparc_cfi_frame_initial_instructions PARAMS ((void));
|
||||||
|
|
||||||
#define tc_regname_to_dw2regnum sparc_regname_to_dw2regnum
|
#define tc_regname_to_dw2regnum sparc_regname_to_dw2regnum
|
||||||
extern int sparc_regname_to_dw2regnum PARAMS ((const char *regname));
|
extern int sparc_regname_to_dw2regnum PARAMS ((char *regname));
|
||||||
|
|
||||||
#define tc_cfi_emit_pcrel_expr sparc_cfi_emit_pcrel_expr
|
#define tc_cfi_emit_pcrel_expr sparc_cfi_emit_pcrel_expr
|
||||||
extern void sparc_cfi_emit_pcrel_expr PARAMS ((expressionS *, unsigned int));
|
extern void sparc_cfi_emit_pcrel_expr PARAMS ((expressionS *, unsigned int));
|
||||||
|
|
Loading…
Reference in a new issue