mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-18 21:34:13 +08:00
PR gas/16434
* config/tc-z80.c (wrong_match): Provide format string to as_warn. (parse_exp_not_indexed): Delete unused variable dummy. (emit_byte): Delete unused variable fixp.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2014-01-14 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR gas/16434
|
||||||
|
* config/tc-z80.c (wrong_match): Provide format string to
|
||||||
|
as_warn.
|
||||||
|
(parse_exp_not_indexed): Delete unused variable dummy.
|
||||||
|
(emit_byte): Delete unused variable fixp.
|
||||||
|
|
||||||
2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
|
2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* config/tc-i386.c (regbnd): Removed.
|
* config/tc-i386.c (regbnd): Removed.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* tc-z80.c -- Assemble code for the Zilog Z80 and ASCII R800
|
/* tc-z80.c -- Assemble code for the Zilog Z80 and ASCII R800
|
||||||
Copyright 2005, 2006, 2007, 2008, 2009, 2012 Free Software Foundation, Inc.
|
Copyright 2005-2014 Free Software Foundation, Inc.
|
||||||
Contributed by Arnold Metselaar <arnold_m@operamail.com>
|
Contributed by Arnold Metselaar <arnold_m@operamail.com>
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -467,7 +467,7 @@ wrong_mach (int ins_type)
|
|||||||
if (ins_type & ins_err)
|
if (ins_type & ins_err)
|
||||||
error (_(p));
|
error (_(p));
|
||||||
else
|
else
|
||||||
as_warn (_(p));
|
as_warn ("%s", _(p));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -544,12 +544,11 @@ parse_exp_not_indexed (const char *s, expressionS *op)
|
|||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
int indir;
|
int indir;
|
||||||
segT dummy;
|
|
||||||
|
|
||||||
p = skip_space (s);
|
p = skip_space (s);
|
||||||
op->X_md = indir = is_indir (p);
|
op->X_md = indir = is_indir (p);
|
||||||
input_line_pointer = (char*) s ;
|
input_line_pointer = (char*) s ;
|
||||||
dummy = expression (op);
|
expression (op);
|
||||||
switch (op->X_op)
|
switch (op->X_op)
|
||||||
{
|
{
|
||||||
case O_absent:
|
case O_absent:
|
||||||
@ -705,7 +704,6 @@ emit_byte (expressionS * val, bfd_reloc_code_real_type r_type)
|
|||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
int lo, hi;
|
int lo, hi;
|
||||||
fixS * fixp;
|
|
||||||
|
|
||||||
p = frag_more (1);
|
p = frag_more (1);
|
||||||
*p = val->X_add_number;
|
*p = val->X_add_number;
|
||||||
@ -732,8 +730,8 @@ emit_byte (expressionS * val, bfd_reloc_code_real_type r_type)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fixp = fix_new_exp (frag_now, p - frag_now->fr_literal, 1, val,
|
fix_new_exp (frag_now, p - frag_now->fr_literal, 1, val,
|
||||||
(r_type == BFD_RELOC_8_PCREL) ? TRUE : FALSE, r_type);
|
(r_type == BFD_RELOC_8_PCREL) ? TRUE : FALSE, r_type);
|
||||||
/* FIXME : Process constant offsets immediately. */
|
/* FIXME : Process constant offsets immediately. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user