* config/tc-score.c (s3_my_get_expression): Delete unused local

variable 'seg'.
	(s3_do_ldst_insn): Delete unused local variable 'strbak'.
	(s3_do16_ldst_insn): Delete unused local variable 'temp'.
	(s3_do_macro_bcmp): Zero inst_expand array.
	(s3_do_macro_bcmpz): Likewise.
	(s3_s_score_end): Delete unused local variable 'dot'.
	(s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
	* config/tc-score7.c (s7_my_get_expression): Delete unused local
	variable 'seg'.
	(s7_do_ldst_insn): Delete unused local variable 'strbak'.
	(s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
	'r_new'.
	(s7_s_score_end): Delete unused local variable 'dot'.
	(s7_relax_frag): Delete unused local variable 'relax_size'.
	(s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
This commit is contained in:
Nick Clifton 2011-06-13 09:45:28 +00:00
parent 551497ed0e
commit f9e53abc4a
3 changed files with 309 additions and 323 deletions

View File

@ -1,3 +1,22 @@
2011-06-13 Nick Clifton <nickc@redhat.com>
* config/tc-score.c (s3_my_get_expression): Delete unused local
variable 'seg'.
(s3_do_ldst_insn): Delete unused local variable 'strbak'.
(s3_do16_ldst_insn): Delete unused local variable 'temp'.
(s3_do_macro_bcmp): Zero inst_expand array.
(s3_do_macro_bcmpz): Likewise.
(s3_s_score_end): Delete unused local variable 'dot'.
(s3_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
* config/tc-score7.c (s7_my_get_expression): Delete unused local
variable 'seg'.
(s7_do_ldst_insn): Delete unused local variable 'strbak'.
(s7_b32_relax_to_b16): Delete unused local variables 'r_old' and
'r_new'.
(s7_s_score_end): Delete unused local variable 'dot'.
(s7_relax_frag): Delete unused local variable 'relax_size'.
(s7_gen_reloc): Delete unused local variables 'f', 's', and 'e'.
2011-06-10 H.J. Lu <hongjiu.lu@intel.com>
AVX Programming Reference (June, 2011)
@ -5,7 +24,7 @@
unsupported_vector_index_register.
(cpu_arch): Add .avx2, .bmi2, .lzcnt and .invpcid.
(check_VecOperands): New.
(match_template): Call check_VecOperands. Handle
(match_template): Call check_VecOperands. Handle
invalid_vsib_address and unsupported_vector_index_register.
(build_modrm_byte): Support VecSIB. Check register-only source
operand when two source operands are swapped.

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/* tc-score7.c -- Assembler for Score7
Copyright 2009 Free Software Foundation, Inc.
Copyright 2009, 2011 Free Software Foundation, Inc.
Contributed by:
Brain.lin (brain.lin@sunplusct.com)
Mei Ligang (ligang@sunnorth.com.cn)
@ -1260,12 +1260,12 @@ static int
s7_my_get_expression (expressionS * ep, char **str)
{
char *save_in;
segT seg;
save_in = input_line_pointer;
input_line_pointer = *str;
s7_in_my_get_expression = 1;
seg = expression (ep);
(void) expression (ep);
s7_in_my_get_expression = 0;
if (ep->X_op == O_illegal)
@ -3096,14 +3096,12 @@ s7_do_ldst_insn (char *str)
int conflict_reg;
int value;
char * temp;
char *strbak;
char *dataptr;
int reg;
int ldst_idx = 0;
int hex_p = 0;
strbak = str;
s7_skip_whitespace (str);
if (((conflict_reg = s7_reg_required_here (&str, 20, s7_REG_TYPE_SCORE)) == (int) s7_FAIL)
@ -5244,8 +5242,6 @@ s7_b32_relax_to_b16 (fragS * fragp)
{
int grows = 0;
int relaxable_p = 0;
int r_old;
int r_new;
int frag_addr = fragp->fr_address + fragp->insn_addr;
addressT symbol_address = 0;
@ -5259,8 +5255,6 @@ s7_b32_relax_to_b16 (fragS * fragp)
so in relax stage , it may be wrong to calculate the symbol's offset when the frag's section
is different from the symbol's. */
r_old = s7_RELAX_OLD (fragp->fr_subtype);
r_new = s7_RELAX_NEW (fragp->fr_subtype);
relaxable_p = s7_RELAX_OPT (fragp->fr_subtype);
s = fragp->fr_symbol;
@ -5648,7 +5642,6 @@ s7_s_score_end (int x ATTRIBUTE_UNUSED)
/* Generate a .pdr section. */
segT saved_seg = now_seg;
subsegT saved_subseg = now_subseg;
valueT dot;
expressionS exp;
char *fragp;
@ -5699,7 +5692,7 @@ s7_s_score_end (int x ATTRIBUTE_UNUSED)
else
{
dot = frag_now_fix ();
(void) frag_now_fix ();
gas_assert (s7_pdr_seg);
subseg_set (s7_pdr_seg, 0);
/* Write the symbol. */
@ -6376,7 +6369,6 @@ s7_relax_frag (asection * sec ATTRIBUTE_UNUSED,
{
int grows = 0;
int insn_size;
int insn_relax_size;
int do_relax_p = 0; /* Indicate doing relaxation for this frag. */
int relaxable_p = 0;
bfd_boolean word_align_p = FALSE;
@ -6396,15 +6388,9 @@ s7_relax_frag (asection * sec ATTRIBUTE_UNUSED,
/* Get instruction size and relax size after the last relaxation. */
if (fragp->fr_opcode)
{
insn_size = s7_RELAX_NEW (fragp->fr_subtype);
insn_relax_size = s7_RELAX_OLD (fragp->fr_subtype);
}
insn_size = s7_RELAX_NEW (fragp->fr_subtype);
else
{
insn_size = s7_RELAX_OLD (fragp->fr_subtype);
insn_relax_size = s7_RELAX_NEW (fragp->fr_subtype);
}
insn_size = s7_RELAX_OLD (fragp->fr_subtype);
/* Handle specially for s7_GP instruction. for, s7_judge_size_before_relax() has already determine
whether the s7_GP instruction should do relax. */
@ -6891,9 +6877,6 @@ s7_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp)
arelent *reloc;
bfd_reloc_code_real_type code;
char *type;
fragS *f;
symbolS *s;
expressionS e;
reloc = retval[0] = xmalloc (sizeof (arelent));
retval[1] = NULL;
@ -6932,10 +6915,6 @@ s7_gen_reloc (asection * section ATTRIBUTE_UNUSED, fixS * fixp)
*retval[1]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
retval[1]->address = (reloc->address + s7_RELAX_RELOC2 (fixp->fx_frag->fr_subtype));
f = fixp->fx_frag;
s = f->fr_symbol;
e = s->sy_value;
retval[1]->addend = 0;
retval[1]->howto = bfd_reloc_type_lookup (stdoutput, BFD_RELOC_LO16);
gas_assert (retval[1]->howto != NULL);