From de9df5fa1def74173d23f492497ab1c59098f78f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 3 Jan 1997 17:50:06 +0000 Subject: [PATCH] * config/tc-m68k.h (tc_frob_label): Define to warn about a misaligned text label. Based on patch from Ronald F. Guilmette . --- gas/ChangeLog | 4 ++++ gas/config/tc-m68k.h | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 9f1bd650d74..fddd72f8a5d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ Fri Jan 3 12:09:24 1997 Ian Lance Taylor + * config/tc-m68k.h (tc_frob_label): Define to warn about a + misaligned text label. Based on patch from Ronald F. Guilmette + . + * macro.c (macro_expand_body): In MRI mode, just copy a single &. * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a diff --git a/gas/config/tc-m68k.h b/gas/config/tc-m68k.h index 85fb20c56bb..3967f35801d 100644 --- a/gas/config/tc-m68k.h +++ b/gas/config/tc-m68k.h @@ -122,6 +122,16 @@ extern void m68k_mri_mode_change PARAMS ((int)); extern int m68k_conditional_pseudoop PARAMS ((pseudo_typeS *)); #define tc_conditional_pseudoop(pop) m68k_conditional_pseudoop (pop) +#define tc_frob_label(sym) \ +do \ + { \ + if (S_GET_SEGMENT (sym) == text_section \ + && (S_GET_VALUE (sym) & 1) != 0) \ + as_warn ("text label `%s' aligned to odd boundary", \ + S_GET_NAME (sym)); \ + } \ +while (0) + #ifdef BFD_ASSEMBLER #define tc_frob_symbol(sym,punt) \ -- 2.30.2