diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-03-07 15:16:28 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-03-07 15:16:28 +0000 |
commit | f86f586366275bbb5ae77520eb990769f05a3030 (patch) | |
tree | c381a61b29516a52e982c2b1d015ce13e88f5f07 /gas/config/tc-tic4x.c | |
parent | 410d0d5c769ac15c449beb580fb505065630e344 (diff) | |
download | gdb-f86f586366275bbb5ae77520eb990769f05a3030.zip gdb-f86f586366275bbb5ae77520eb990769f05a3030.tar.gz gdb-f86f586366275bbb5ae77520eb990769f05a3030.tar.bz2 |
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.
Diffstat (limited to 'gas/config/tc-tic4x.c')
-rw-r--r-- | gas/config/tc-tic4x.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 0b62e07..0905658 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -618,7 +618,7 @@ tic4x_atof (char *str, char what_kind, LITTLENUM_TYPE *words) } static void -tic4x_insert_reg (char *regname, int regnum) +tic4x_insert_reg (const char *regname, int regnum) { char buf[32]; int i; @@ -634,7 +634,7 @@ tic4x_insert_reg (char *regname, int regnum) } static void -tic4x_insert_sym (char *symname, int value) +tic4x_insert_sym (const char *symname, int value) { symbolS *symbolP; @@ -1239,7 +1239,7 @@ tic4x_inst_insert (const tic4x_inst_t *inst) /* Make a new instruction template. */ static tic4x_inst_t * -tic4x_inst_make (char *name, unsigned long opcode, char *args) +tic4x_inst_make (const char *name, unsigned long opcode, char *args) { static tic4x_inst_t *insts = NULL; static char *names = NULL; @@ -1271,7 +1271,7 @@ tic4x_inst_make (char *name, unsigned long opcode, char *args) static int tic4x_inst_add (const tic4x_inst_t *insts) { - char *s = insts->name; + const char *s = insts->name; char *d; unsigned int i; int ok = 1; @@ -1295,7 +1295,7 @@ tic4x_inst_add (const tic4x_inst_t *insts) { tic4x_inst_t *inst; int k = 0; - char *c = tic4x_conds[i].name; + const char *c = tic4x_conds[i].name; char *e = d; while (*c) @@ -1407,7 +1407,7 @@ static int tic4x_indirect_parse (tic4x_operand_t *operand, const tic4x_indirect_t *indirect) { - char *n = indirect->name; + const char *n = indirect->name; char *s = input_line_pointer; char *b; symbolS *symbolP; |