diff options
author | Nick Clifton <nickc@redhat.com> | 2008-02-12 08:37:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-02-12 08:37:08 +0000 |
commit | 9c95b5212a0171de38c994698543e03e1cd91fe3 (patch) | |
tree | 665d6e385a7e313fa5a3c7790d5b18e7b223eda3 /gas/config/tc-tic4x.c | |
parent | f03fe4c1100351b498e353d4f3ec126df634e2ca (diff) | |
download | gdb-9c95b5212a0171de38c994698543e03e1cd91fe3.zip gdb-9c95b5212a0171de38c994698543e03e1cd91fe3.tar.gz gdb-9c95b5212a0171de38c994698543e03e1cd91fe3.tar.bz2 |
* config/tc-tic4x.c (tic4x_insn_insert): Add const qualifier to
argument.
(tic4x_insn_add): Likewise.
(md_begin): Drop cast that was discarding a const qualifier.
* config/tc-d30v.c (get_reloc): Add const qualifier to op
argument.
(build_insn): Drop cast that was discarding a const qualifier.
Diffstat (limited to 'gas/config/tc-tic4x.c')
-rw-r--r-- | gas/config/tc-tic4x.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 3edabc2..4c80c19 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -1,5 +1,5 @@ /* tc-tic4x.c -- Assemble for the Texas Instruments TMS320C[34]x. - Copyright (C) 1997,1998, 2002, 2003, 2005, 2006, 2007 + Copyright (C) 1997,1998, 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation. Inc. Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) @@ -186,12 +186,10 @@ static void tic4x_init_regtable PARAMS ((void)); static void tic4x_init_symbols PARAMS ((void)); -static int tic4x_inst_insert - PARAMS ((tic4x_inst_t *)); +static int tic4x_inst_insert (const tic4x_inst_t *); static tic4x_inst_t *tic4x_inst_make PARAMS ((char *, unsigned long, char *)); -static int tic4x_inst_add - PARAMS ((tic4x_inst_t *)); +static int tic4x_inst_add (const tic4x_inst_t *); void tic4x_end PARAMS ((void)); static int tic4x_indirect_parse @@ -1314,8 +1312,7 @@ tic4x_init_symbols () /* Insert a new instruction template into hash table. */ static int -tic4x_inst_insert (inst) - tic4x_inst_t *inst; +tic4x_inst_insert (const tic4x_inst_t *inst) { static char prev_name[16]; const char *retval = NULL; @@ -1368,8 +1365,7 @@ tic4x_inst_make (name, opcode, args) /* Add instruction template, creating dynamic templates as required. */ static int -tic4x_inst_add (insts) - tic4x_inst_t *insts; +tic4x_inst_add (const tic4x_inst_t *insts) { char *s = insts->name; char *d; @@ -1481,7 +1477,7 @@ md_begin () /* Add mnemonics to hash table, expanding conditional mnemonics on fly. */ for (i = 0; i < tic4x_num_insts; i++) - ok &= tic4x_inst_add ((void *) &tic4x_insts[i]); + ok &= tic4x_inst_add (tic4x_insts + i); /* Create dummy inst to avoid errors accessing end of table. */ tic4x_inst_make ("", 0, ""); |