mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
PR gas/12861
* config/tc-cr16.c (tc_gen_reloc): Remove unused local variable code. (check_cinv_options): Remove unused local variables. Make function void. (md_assemble): Remove unused local variable.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2011-06-09 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR gas/12861
|
||||||
|
* config/tc-cr16.c (tc_gen_reloc): Remove unused local variable
|
||||||
|
code.
|
||||||
|
(check_cinv_options): Remove unused local variables. Make
|
||||||
|
function void.
|
||||||
|
(md_assemble): Remove unused local variable.
|
||||||
|
|
||||||
2011-06-09 James Greenhalgh <james.greenhalgh@arm.com>
|
2011-06-09 James Greenhalgh <james.greenhalgh@arm.com>
|
||||||
|
|
||||||
* config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
|
* config/tc-arm.c (do_ldrd): Warn in unpredictable cases.
|
||||||
|
@ -522,7 +522,6 @@ arelent *
|
|||||||
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS * fixP)
|
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS * fixP)
|
||||||
{
|
{
|
||||||
arelent * reloc;
|
arelent * reloc;
|
||||||
bfd_reloc_code_real_type code;
|
|
||||||
|
|
||||||
/* If symbols are local and resolved, then no relocation needed. */
|
/* If symbols are local and resolved, then no relocation needed. */
|
||||||
if ( ((fixP->fx_addsy)
|
if ( ((fixP->fx_addsy)
|
||||||
@ -582,14 +581,12 @@ tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS * fixP)
|
|||||||
&& GOT_symbol
|
&& GOT_symbol
|
||||||
&& fixP->fx_addsy == GOT_symbol)
|
&& fixP->fx_addsy == GOT_symbol)
|
||||||
{
|
{
|
||||||
code = BFD_RELOC_CR16_GOT_REGREL20;
|
|
||||||
reloc->addend = fixP->fx_offset = reloc->address;
|
reloc->addend = fixP->fx_offset = reloc->address;
|
||||||
}
|
}
|
||||||
else if ((fixP->fx_r_type == BFD_RELOC_CR16_GOTC_REGREL20)
|
else if ((fixP->fx_r_type == BFD_RELOC_CR16_GOTC_REGREL20)
|
||||||
&& GOT_symbol
|
&& GOT_symbol
|
||||||
&& fixP->fx_addsy == GOT_symbol)
|
&& fixP->fx_addsy == GOT_symbol)
|
||||||
{
|
{
|
||||||
code = BFD_RELOC_CR16_GOTC_REGREL20;
|
|
||||||
reloc->addend = fixP->fx_offset = reloc->address;
|
reloc->addend = fixP->fx_offset = reloc->address;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -1549,28 +1546,25 @@ is_bcc_insn (char * op)
|
|||||||
|
|
||||||
/* Cinv instruction requires special handling. */
|
/* Cinv instruction requires special handling. */
|
||||||
|
|
||||||
static int
|
static void
|
||||||
check_cinv_options (char * operand)
|
check_cinv_options (char * operand)
|
||||||
{
|
{
|
||||||
char *p = operand;
|
char *p = operand;
|
||||||
int i_used = 0, u_used = 0, d_used = 0;
|
|
||||||
|
|
||||||
while (*++p != ']')
|
while (*++p != ']')
|
||||||
{
|
{
|
||||||
if (*p == ',' || *p == ' ')
|
switch (*p)
|
||||||
continue;
|
{
|
||||||
|
case ',':
|
||||||
else if (*p == 'i')
|
case ' ':
|
||||||
i_used = 1;
|
case 'i':
|
||||||
else if (*p == 'u')
|
case 'u':
|
||||||
u_used = 1;
|
case 'd':
|
||||||
else if (*p == 'd')
|
break;
|
||||||
d_used = 1;
|
default:
|
||||||
else
|
|
||||||
as_bad (_("Illegal `cinv' parameter: `%c'"), *p);
|
as_bad (_("Illegal `cinv' parameter: `%c'"), *p);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Retrieve the opcode image of a given register pair.
|
/* Retrieve the opcode image of a given register pair.
|
||||||
@ -2504,7 +2498,6 @@ md_assemble (char *op)
|
|||||||
{
|
{
|
||||||
ins cr16_ins;
|
ins cr16_ins;
|
||||||
char *param, param1[32];
|
char *param, param1[32];
|
||||||
char c;
|
|
||||||
|
|
||||||
/* Reset global variables for a new instruction. */
|
/* Reset global variables for a new instruction. */
|
||||||
reset_vars (op);
|
reset_vars (op);
|
||||||
@ -2512,7 +2505,6 @@ md_assemble (char *op)
|
|||||||
/* Strip the mnemonic. */
|
/* Strip the mnemonic. */
|
||||||
for (param = op; *param != 0 && !ISSPACE (*param); param++)
|
for (param = op; *param != 0 && !ISSPACE (*param); param++)
|
||||||
;
|
;
|
||||||
c = *param;
|
|
||||||
*param++ = '\0';
|
*param++ = '\0';
|
||||||
|
|
||||||
/* bCC instuctions and adjust the mnemonic by adding extra white spaces. */
|
/* bCC instuctions and adjust the mnemonic by adding extra white spaces. */
|
||||||
|
Reference in New Issue
Block a user