displacement. */
static enum m68k_size m68k_index_width_default = SIZE_LONG;
-/* We want to warn if any text labels are misaligned. In order to get
- the right line number, we need to record the line number for each
- label. */
-struct label_line
-{
- struct label_line *next;
- symbolS *label;
- const char *file;
- unsigned int line;
- int text;
-};
-
-/* The list of labels. */
-
-static struct label_line *labels;
-
/* The current label. */
-static struct label_line *current_label;
+static struct m68k_tc_sy *current_label;
/* Pointer to list holding the opcodes sorted by name. */
static struct m68k_opcode const ** m68k_sorted_opcodes;
void
m68k_frob_label (symbolS *sym)
{
- struct label_line *n;
+ struct m68k_tc_sy *n;
- n = XNEW (struct label_line);
- n->next = labels;
- n->label = sym;
+ n = symbol_get_tc (sym);
n->file = as_where (&n->line);
n->text = 0;
- labels = n;
current_label = n;
dwarf2_emit_label (sym);
}
else if ((S_GET_VALUE (sym) & 1) != 0)
{
- struct label_line *l;
+ struct m68k_tc_sy *l;
+ l = symbol_get_tc (sym);
- for (l = labels; l != NULL; l = l->next)
- {
- if (l->label == sym)
- {
- if (l->text)
- as_warn_where (l->file, l->line,
- _("text label `%s' aligned to odd boundary"),
- S_GET_NAME (sym));
- break;
- }
- }
+ if (l->text)
+ as_warn_where (l->file, l->line,
+ _("text label `%s' aligned to odd boundary"),
+ S_GET_NAME (sym));
}
}
\f
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
+#ifndef TC_M68K_H
+#define TC_M68K_H
+
#define TC_M68K 1
struct fix;
tc_m68k_check_adjusted_broken_word ((offsetT) (new_offset), (brokw))
extern void tc_m68k_check_adjusted_broken_word (offsetT,
struct broken_word *);
+
+/* We want to warn if any text labels are misaligned. In order to get
+ the right line number, we need to record the line number for each
+ label. */
+struct m68k_tc_sy
+{
+ const char *file;
+ unsigned int line;
+ int text;
+};
+
+#define TC_SYMFIELD_TYPE struct m68k_tc_sy
+
+#endif /* TC_M68K_H */