[vms/committed]: remove useless variable in gas/config/tc-alpha.c
Tristan Gingold
gingold@adacore.com
Fri Jun 24 15:16:00 GMT 2011
Hi,
this simple patch removes an useless variable. Just to clean-up the code.
Committed on trunk.
Tristan.
gas/
2011-06-24 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (add_to_link_pool): Remove useless offset
variable. Fix style.
===================================================================
RCS file: /cvs/src/src/gas/config/tc-alpha.c,v
retrieving revision 1.90
diff -c -r1.90 tc-alpha.c
*** gas/config/tc-alpha.c 29 Mar 2011 18:16:15 -0000 1.90
--- gas/config/tc-alpha.c 24 Jun 2011 15:15:10 -0000
***************
*** 3372,3378 ****
#ifdef OBJ_EVAX
! /* Add symbol+addend to link pool.
Return offset from basesym to entry in link pool.
Add new fixup only if offset isn't 16bit. */
--- 3372,3378 ----
#ifdef OBJ_EVAX
! /* Add sym+addend to link pool.
Return offset from basesym to entry in link pool.
Add new fixup only if offset isn't 16bit. */
***************
*** 3384,3398 ****
{
segT current_section = now_seg;
int current_subsec = now_subseg;
- valueT offset;
char *p;
segment_info_type *seginfo = seg_info (alpha_link_section);
fixS *fixp;
symbolS *linksym, *expsym;
expressionS e;
- offset = 0; /* ??? DBR */
-
/* @@ This assumes all entries in a given section will be of the same
size... Probably correct, but unwise to rely on. */
/* This must always be called with the same subsegment. */
--- 3384,3395 ----
***************
*** 3402,3412 ****
fixp != (fixS *) NULL;
fixp = fixp->fx_next)
{
- if (fixp->tc_fix_data.info
- && fixp->tc_fix_data.info->sym
- && fixp->tc_fix_data.info->sym->sy_value.X_op_symbol == basesym)
- offset += 8;
-
if (fixp->fx_addsy == sym
&& fixp->fx_offset == (valueT)addend
&& fixp->tc_fix_data.info
--- 3399,3404 ----
***************
*** 3430,3436 ****
expsym = make_expr_symbol (&e);
fixp = fix_new
! (frag_now, p-frag_now->fr_literal, 8, sym, addend, 0, BFD_RELOC_64);
fixp->tc_fix_data.info = get_alpha_reloc_tag (next_sequence_num--);
fixp->tc_fix_data.info->sym = expsym;
--- 3422,3428 ----
expsym = make_expr_symbol (&e);
fixp = fix_new
! (frag_now, p - frag_now->fr_literal, 8, sym, addend, 0, BFD_RELOC_64);
fixp->tc_fix_data.info = get_alpha_reloc_tag (next_sequence_num--);
fixp->tc_fix_data.info->sym = expsym;
More information about the Binutils
mailing list