* 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:
Thiemo Seufer 2006-05-19 11:26:11 +00:00
parent 377260ba3a
commit 1df69f4f6c
15 changed files with 32 additions and 15 deletions

View File

@ -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>
* gas/config/tc-m68k.c (m68k_init_arch): Move checking of

View File

@ -15601,9 +15601,9 @@ create_unwind_entry (int have_data)
/* Convert REGNAME to a DWARF-2 register number. */
int
tc_arm_regname_to_dw2regnum (const char *regname)
tc_arm_regname_to_dw2regnum (char *regname)
{
int reg = arm_reg_parse ((char **) &regname, REG_TYPE_RN);
int reg = arm_reg_parse (&regname, REG_TYPE_RN);
if (reg == FAIL)
return -1;

View File

@ -244,5 +244,5 @@ extern void arm_init_frag (struct frag *);
extern void arm_handle_align (struct frag *);
extern bfd_boolean arm_fix_adjustable (struct fix *);
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);

View File

@ -7173,7 +7173,7 @@ intel_putback_token ()
}
int
tc_x86_regname_to_dw2regnum (const char *regname)
tc_x86_regname_to_dw2regnum (char *regname)
{
unsigned int regnum;
unsigned int regnames_count;

View File

@ -488,7 +488,7 @@ extern int x86_cie_data_alignment;
#define DWARF2_CIE_DATA_ALIGNMENT x86_cie_data_alignment
#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
extern void tc_x86_frame_initial_instructions PARAMS ((void));

View File

@ -7562,7 +7562,7 @@ m68k_elf_final_processing (void)
#endif
int
tc_m68k_regname_to_dw2regnum (const char *regname)
tc_m68k_regname_to_dw2regnum (char *regname)
{
unsigned int regnum;
static const char *const regnames[] =

View File

@ -174,7 +174,7 @@ extern struct relax_type md_relax_table[];
#define DWARF2_CIE_DATA_ALIGNMENT (-4)
#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
extern void tc_m68k_frame_initial_instructions (void);

View File

@ -6078,7 +6078,7 @@ ppc_cfi_frame_initial_instructions ()
}
int
tc_ppc_regname_to_dw2regnum (const char *regname)
tc_ppc_regname_to_dw2regnum (char *regname)
{
unsigned int regnum = -1;
unsigned int i;

View File

@ -259,7 +259,7 @@ extern int ppc_parse_name PARAMS ((const char *, struct expressionS *));
extern void ppc_cfi_frame_initial_instructions PARAMS ((void));
#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;

View File

@ -2322,7 +2322,7 @@ s390_cfi_frame_initial_instructions ()
}
int
tc_s390_regname_to_dw2regnum (const char *regname)
tc_s390_regname_to_dw2regnum (char *regname)
{
int regnum = -1;

View File

@ -88,7 +88,7 @@ extern void s390_md_end PARAMS ((void));
extern void s390_cfi_frame_initial_instructions PARAMS ((void));
#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;

View File

@ -4382,7 +4382,7 @@ sh_cfi_frame_initial_instructions (void)
}
int
sh_regname_to_dw2regnum (const char *regname)
sh_regname_to_dw2regnum (char *regname)
{
unsigned int regnum = -1;
unsigned int i;

View File

@ -225,7 +225,7 @@ void sh_cons_fix_new (fragS *, int, int, expressionS *);
extern void sh_cfi_frame_initial_instructions (void);
#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. */
#define DWARF2_LINE_MIN_INSN_LENGTH 2

View File

@ -4602,7 +4602,7 @@ sparc_cfi_frame_initial_instructions ()
}
int
sparc_regname_to_dw2regnum (const char *regname)
sparc_regname_to_dw2regnum (char *regname)
{
char *p, *q;

View File

@ -171,7 +171,7 @@ extern void cons_fix_new_sparc
extern void sparc_cfi_frame_initial_instructions PARAMS ((void));
#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
extern void sparc_cfi_emit_pcrel_expr PARAMS ((expressionS *, unsigned int));