aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-d30v.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-02-12 08:37:08 +0000
committerNick Clifton <nickc@redhat.com>2008-02-12 08:37:08 +0000
commit9c95b5212a0171de38c994698543e03e1cd91fe3 (patch)
tree665d6e385a7e313fa5a3c7790d5b18e7b223eda3 /gas/config/tc-d30v.c
parentf03fe4c1100351b498e353d4f3ec126df634e2ca (diff)
downloadgdb-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-d30v.c')
-rw-r--r--gas/config/tc-d30v.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-d30v.c b/gas/config/tc-d30v.c
index e257f75..4dfa197 100644
--- a/gas/config/tc-d30v.c
+++ b/gas/config/tc-d30v.c
@@ -1,5 +1,5 @@
/* tc-d30v.c -- Assembler code for the Mitsubishi D30V
- Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2008
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -352,7 +352,7 @@ postfix (char *p)
}
static bfd_reloc_code_real_type
-get_reloc (struct d30v_operand *op, int rel_flag)
+get_reloc (const struct d30v_operand *op, int rel_flag)
{
switch (op->bits)
{
@@ -538,7 +538,7 @@ build_insn (struct d30v_insn *opcode, expressionS *opers)
as_fatal (_("too many fixups"));
fixups->fix[fixups->fc].reloc =
- get_reloc ((struct d30v_operand *) &d30v_operand_table[form->operands[i]], op->reloc_flag);
+ get_reloc (d30v_operand_table + form->operands[i], op->reloc_flag);
fixups->fix[fixups->fc].size = 4;
fixups->fix[fixups->fc].exp = opers[i];
fixups->fix[fixups->fc].operand = form->operands[i];