aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-nds32.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-23 22:39:13 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-03-28 20:38:24 -0400
commit82b8a7851fb9d7724c53d13a4319d1e47acc4460 (patch)
treecca10abb478f1090c8a00eb0bffb510af1ba88ff /gas/config/tc-nds32.c
parent5fa9f97233e5c75d4c70f6a86f558eadfed3696e (diff)
downloadgdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.zip
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.gz
gdb-82b8a7851fb9d7724c53d13a4319d1e47acc4460.tar.bz2
add more const qualifiers
gas/ChangeLog: 2016-03-28 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/obj-elf.c (obj_elf_section_name): Return const char *. * config/obj-elf.h (obj_elf_section_name): Adjust. * config/tc-aarch64.c (aarch64_parse_features): Likewise. (aarch64_parse_cpu): Likewise. (aarch64_parse_arch): Likewise. * config/tc-arm.c (arm_parse_extension): Likewise. (arm_parse_cpu): Likewise. (arm_parse_arch): Likewise. * config/tc-nds32.c: Likewise. * config/xtensa-relax.c (parse_special_fn): Likewise. * stabs.c (generate_asm_file): Likewise.
Diffstat (limited to 'gas/config/tc-nds32.c')
-rw-r--r--gas/config/tc-nds32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-nds32.c b/gas/config/tc-nds32.c
index 66b8136..90b4d27 100644
--- a/gas/config/tc-nds32.c
+++ b/gas/config/tc-nds32.c
@@ -2986,7 +2986,7 @@ nds32_init_nds32_pseudo_opcodes (void)
}
static struct nds32_pseudo_opcode *
-nds32_lookup_pseudo_opcode (char *str)
+nds32_lookup_pseudo_opcode (const char *str)
{
int i = 0;
/* Assume pseudo-opcode are less than 16-char in length. */
@@ -4138,7 +4138,7 @@ nds32_elf_save_pseudo_pattern (fixS* fixP, struct nds32_opcode *opcode,
/* Check X_md to transform relocation. */
static fixS*
-nds32_elf_record_fixup_exp (fragS *fragP, char *str,
+nds32_elf_record_fixup_exp (fragS *fragP, const char *str,
const struct nds32_field *fld,
expressionS *pexp, char* out,
struct nds32_asm_insn *insn)
@@ -5102,7 +5102,7 @@ restore:
/* Check instruction if it can be used for the baseline. */
static bfd_boolean
-nds32_check_insn_available (struct nds32_asm_insn insn, char *str)
+nds32_check_insn_available (struct nds32_asm_insn insn, const char *str)
{
int attr = insn.attr & ATTR_ALL;
static int baseline_isa = 0;