aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-06-24 15:16:03 +0000
committerTristan Gingold <gingold@adacore.com>2011-06-24 15:16:03 +0000
commit576d330713e0e9c2cbec6f93c838d97580f09800 (patch)
treec64101575aec926d38469e8afe033ce895348715 /gas
parenta81aeffc8121b05dbf414029e94cf48a777ecfe4 (diff)
downloadgdb-576d330713e0e9c2cbec6f93c838d97580f09800.zip
gdb-576d330713e0e9c2cbec6f93c838d97580f09800.tar.gz
gdb-576d330713e0e9c2cbec6f93c838d97580f09800.tar.bz2
2011-06-24 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (add_to_link_pool): Remove useless offset variable. Fix style.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-alpha.c12
2 files changed, 7 insertions, 10 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2abdf3e..fb03665 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-24 Tristan Gingold <gingold@adacore.com>
+
+ * config/tc-alpha.c (add_to_link_pool): Remove useless offset
+ variable. Fix style.
+
2011-06-23 Richard Sandiford <rdsandiford@googlemail.com>
PR gas/12915
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 5c1c73e..ef95cd9 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;