* config/tc-m68k.h (tc_frob_label): Define to warn about a
authorIan Lance Taylor <ian@airs.com>
Fri, 3 Jan 1997 17:50:06 +0000 (17:50 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 3 Jan 1997 17:50:06 +0000 (17:50 +0000)
  misaligned text label.  Based on patch from Ronald F. Guilmette
  <rfg@monkeys.com>.

gas/ChangeLog
gas/config/tc-m68k.h

index 9f1bd650d740193fe7f0d814aa435e2a4d5b840f..fddd72f8a5d22730ca44b75aa6f4029220475d65 100644 (file)
@@ -1,5 +1,9 @@
 Fri Jan  3 12:09:24 1997  Ian Lance Taylor  <ian@cygnus.com>
 
+       * config/tc-m68k.h (tc_frob_label): Define to warn about a
+       misaligned text label.  Based on patch from Ronald F. Guilmette
+       <rfg@monkeys.com>.
+
        * macro.c (macro_expand_body): In MRI mode, just copy a single &.
 
        * config/tc-m68k.c (m68k_ip): Call frag_grow before adding a
index 85fb20c56bb3e8debcca66c2a43863b4707cef0d..3967f35801d8fbaa62af40fcc5f8cc33e328c39b 100644 (file)
@@ -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) \