From 576d330713e0e9c2cbec6f93c838d97580f09800 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 24 Jun 2011 15:16:03 +0000 Subject: [PATCH] 2011-06-24 Tristan Gingold * config/tc-alpha.c (add_to_link_pool): Remove useless offset variable. Fix style. --- gas/ChangeLog | 5 +++++ gas/config/tc-alpha.c | 12 ++---------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 2abdf3eb0da..fb03665c9f8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2011-06-24 Tristan Gingold + + * config/tc-alpha.c (add_to_link_pool): Remove useless offset + variable. Fix style. + 2011-06-23 Richard Sandiford PR gas/12915 diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 5c1c73e991f..ef95cd968e9 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -3372,7 +3372,7 @@ assemble_tokens (const char *opname, #ifdef OBJ_EVAX -/* Add symbol+addend to link pool. +/* 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,15 +3384,12 @@ add_to_link_pool (symbolS *basesym, { 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. */ @@ -3402,11 +3399,6 @@ add_to_link_pool (symbolS *basesym, 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 @@ -3430,7 +3422,7 @@ add_to_link_pool (symbolS *basesym, expsym = make_expr_symbol (&e); fixp = fix_new - (frag_now, p-frag_now->fr_literal, 8, sym, addend, 0, BFD_RELOC_64); + (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; -- 2.30.2