aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-10-21 13:24:26 +0000
committerTristan Gingold <gingold@adacore.com>2011-10-21 13:24:26 +0000
commitf8e24652cb7bb02eb602d1c8a10ef068b8612cf9 (patch)
tree2a339c8af224b803721ee007be6afe67773a73c8 /gas
parent9cae27dcb1821f8387a20c7c62163c270dc6c95c (diff)
downloadgdb-f8e24652cb7bb02eb602d1c8a10ef068b8612cf9.zip
gdb-f8e24652cb7bb02eb602d1c8a10ef068b8612cf9.tar.gz
gdb-f8e24652cb7bb02eb602d1c8a10ef068b8612cf9.tar.bz2
2011-10-21 Tristan Gingold <gingold@adacore.com>
* config/tc-alpha.c (load_expression): Use symbol_mark_used accessor. (s_alpha_comm): Use symbol_set_frag accessor.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-alpha.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b260dc7..572044e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-21 Tristan Gingold <gingold@adacore.com>
+
+ * config/tc-alpha.c (load_expression): Use symbol_mark_used accessor.
+ (s_alpha_comm): Use symbol_set_frag accessor.
+
2011-10-20 Alan Modra <amodra@gmail.com>
* config/tc-mips.c (micromips_add_label): Avoid gcc warning.
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 406fffb..47d519a 100644
--- a/gas/config/tc-alpha.c
+++ b/gas/config/tc-alpha.c
@@ -1394,7 +1394,7 @@ load_expression (int targreg,
gas_assert (insn.nfixups + 1 <= MAX_INSN_FIXUPS);
insn.fixups[insn.nfixups].reloc = BFD_RELOC_ALPHA_NOP;
ensym = symbol_find_or_make (ensymname);
- ensym->sy_used = 1;
+ symbol_mark_used (ensym);
/* The fixup must be the same as the BFD_RELOC_ALPHA_BOH
case in emit_jsrjmp. See B.4.5.2 of the OpenVMS Linker
Utility Manual. */
@@ -1426,7 +1426,7 @@ load_expression (int targreg,
gas_assert (insn.nfixups + 1 <= MAX_INSN_FIXUPS);
insn.fixups[insn.nfixups].reloc = BFD_RELOC_ALPHA_LDA;
psym = symbol_find_or_make (psymname);
- psym->sy_used = 1;
+ symbol_mark_used (psym);
insn.fixups[insn.nfixups].exp.X_op = O_subtract;
insn.fixups[insn.nfixups].exp.X_add_symbol = psym;
insn.fixups[insn.nfixups].exp.X_op_symbol = alpha_evax_proc->symbol;
@@ -3602,7 +3602,7 @@ s_alpha_comm (int ignore ATTRIBUTE_UNUSED)
frag_align (log_align, 0, 0);
record_alignment (bss_section, log_align);
- symbolP->sy_frag = frag_now;
+ symbol_set_frag (symbolP, frag_now);
pfrag = frag_var (rs_org, 1, 1, (relax_substateT)0, symbolP,
size, NULL);
*pfrag = 0;