forked from Imagelibrary/binutils-gdb
Add const qualifiers at various places.
opcodes * mcore-opc.h: Add const qualifiers. * microblaze-opc.h (struct op_code_struct): Likewise. * sh-opc.h: Likewise. * tic4x-dis.c (tic4x_print_indirect): Likewise. (tic4x_print_op): Likewise. include * opcode/dlx.h (struct dlx_opcode): Add const qualifiers. * opcode/h8300.h (struct h8_opcode): Likewise. * opcode/hppa.h (struct pa_opcode): Likewise. * opcode/msp430.h: Likewise. * opcode/spu.h (struct spu_opcode): Likewise. * opcode/tic30.h (struct _register): Likewise. * opcode/tic4x.h (struct tic4x_register): Likewise. (struct tic4x_cond): Likewise. (struct tic4x_indirect): Likewise. (struct tic4x_inst): Likewise. * opcode/visium.h (struct reg_entry): Likewise. gas * config/tc-arc.c: Add const qualifiers. * config/tc-h8300.c (md_begin): Likewise. * config/tc-ia64.c (print_prmask): Likewise. * config/tc-msp430.c (msp430_operands): Likewise. * config/tc-nds32.c (struct suffix_name): Likewise. (struct nds32_parse_option_table): Likewise. (struct nds32_set_option_table): Likewise. (do_pseudo_pushpopm): Likewise. (do_pseudo_pushpop_stack): Likewise. (nds32_relax_relocs): Likewise. (nds32_flag): Likewise. (struct nds32_hint_map): Likewise. (nds32_find_reloc_table): Likewise. (nds32_match_hint_insn): Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c (get_specific): Likewise. * config/tc-tic30.c: Likewise. * config/tc-tic4x.c (tic4x_inst_add): Likewise. (tic4x_indirect_parse): Likewise. * config/tc-vax.c (vax_cons): Likewise. * config/tc-z80.c (struct reg_entry): Likewise. * config/tc-epiphany.c (md_assemble): Adjust. (epiphany_assemble): New function. (epiphany_elf_section_rtn): Call do_align directly. (epiphany_elf_section_text): Likewise. * config/tc-ip2k.c (ip2k_elf_section_rtn): Likewise. (ip2k_elf_section_text): Likewise. * read.c (do_align): Make it not static. * read.h (do_align): New prototype.
This commit is contained in:
committed by
Nick Clifton
parent
410d0d5c76
commit
f86f586366
@@ -143,7 +143,7 @@
|
||||
struct dlx_opcode
|
||||
{
|
||||
/* Name of the instruction. */
|
||||
char *name;
|
||||
const char *name;
|
||||
|
||||
/* Opcode word. */
|
||||
unsigned long opcode;
|
||||
@@ -161,7 +161,7 @@ struct dlx_opcode
|
||||
D An immediate operand is in bits 0-25 of the instruction.
|
||||
N No opperands needed, for nops.
|
||||
P it can be a register or a 16 bit operand. */
|
||||
char *args;
|
||||
const char *args;
|
||||
};
|
||||
|
||||
static const struct dlx_opcode dlx_opcodes[] =
|
||||
|
||||
@@ -261,7 +261,7 @@ struct h8_opcode
|
||||
int how;
|
||||
enum h8_model available;
|
||||
int time;
|
||||
char *name;
|
||||
const char *name;
|
||||
struct arg args;
|
||||
struct code data;
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ struct pa_opcode
|
||||
const char *name;
|
||||
unsigned long int match; /* Bits that must be set... */
|
||||
unsigned long int mask; /* ... in these bits. */
|
||||
char *args;
|
||||
const char *args;
|
||||
enum pa_arch arch;
|
||||
char flags;
|
||||
};
|
||||
|
||||
@@ -45,7 +45,7 @@ struct msp430_operand_s
|
||||
|
||||
struct msp430_opcode_s
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
int fmt;
|
||||
int insn_opnumb;
|
||||
int bin_opcode;
|
||||
|
||||
@@ -83,7 +83,7 @@ struct spu_opcode
|
||||
{
|
||||
spu_iformat insn_type;
|
||||
unsigned int opcode;
|
||||
char *mnemonic;
|
||||
const char *mnemonic;
|
||||
int arg[5];
|
||||
};
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
struct _register
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned char opcode;
|
||||
unsigned char regtype;
|
||||
};
|
||||
@@ -135,7 +135,7 @@ static const reg *const tic30_regtab_end
|
||||
#define PostIR0_Add_BitRev 0x19
|
||||
|
||||
typedef struct {
|
||||
char *syntax;
|
||||
const char *syntax;
|
||||
unsigned char modfield;
|
||||
unsigned char displacement;
|
||||
} ind_addr_type;
|
||||
@@ -215,7 +215,7 @@ static const ind_addr_type *const tic30_indaddrtab_end
|
||||
|
||||
typedef struct _template
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned int operands; /* how many operands */
|
||||
unsigned int base_opcode; /* base_opcode is the fundamental opcode byte */
|
||||
/* the bits in opcode_modifier are used to generate the final opcode from
|
||||
@@ -608,7 +608,7 @@ static const insn_template *const tic30_optab_end =
|
||||
tic30_optab + sizeof(tic30_optab)/sizeof(tic30_optab[0]);
|
||||
|
||||
typedef struct {
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned int operands_1;
|
||||
unsigned int operands_2;
|
||||
unsigned int base_opcode;
|
||||
|
||||
@@ -58,7 +58,7 @@ c4x_reg_t;
|
||||
|
||||
struct tic4x_register
|
||||
{
|
||||
char * name;
|
||||
const char * name;
|
||||
unsigned long regno;
|
||||
};
|
||||
|
||||
@@ -131,7 +131,7 @@ const unsigned int tic4x_num_registers = (((sizeof tic4x_registers) / (sizeof ti
|
||||
|
||||
struct tic4x_cond
|
||||
{
|
||||
char * name;
|
||||
const char * name;
|
||||
unsigned long cond;
|
||||
};
|
||||
|
||||
@@ -171,7 +171,7 @@ const unsigned int tic4x_num_conds = (((sizeof tic4x_conds) / (sizeof tic4x_cond
|
||||
|
||||
struct tic4x_indirect
|
||||
{
|
||||
char * name;
|
||||
const char * name;
|
||||
unsigned long modn;
|
||||
};
|
||||
|
||||
@@ -223,7 +223,7 @@ const unsigned int tic4x_num_indirects = (((sizeof tic4x_indirects) / (sizeof ti
|
||||
/* Instruction template. */
|
||||
struct tic4x_inst
|
||||
{
|
||||
char * name;
|
||||
const char * name;
|
||||
unsigned long opcode;
|
||||
unsigned long opmask;
|
||||
char * args;
|
||||
|
||||
@@ -100,7 +100,7 @@ enum visium_opcode_arch_val
|
||||
|
||||
struct reg_entry
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned char code;
|
||||
};
|
||||
|
||||
@@ -164,7 +164,7 @@ static const struct reg_entry fp_reg_table[] ATTRIBUTE_UNUSED =
|
||||
|
||||
static const struct cc_entry
|
||||
{
|
||||
char *name;
|
||||
const char *name;
|
||||
int code;
|
||||
} cc_table [] ATTRIBUTE_UNUSED =
|
||||
{
|
||||
@@ -224,7 +224,7 @@ enum addressing_mode
|
||||
|
||||
static const struct opcode_entry
|
||||
{
|
||||
char *mnem;
|
||||
const char *mnem;
|
||||
enum addressing_mode mode;
|
||||
unsigned code;
|
||||
char flags;
|
||||
|
||||
Reference in New Issue
Block a user