aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-01-03 17:50:06 +0000
committerIan Lance Taylor <ian@airs.com>1997-01-03 17:50:06 +0000
commitde9df5fa1def74173d23f492497ab1c59098f78f (patch)
treeab799eb32ef79afabd88a6e5c07ce69fc5ed6e1b /gas/config
parent7b0688dff719a81eb2622268a853107d8fe961d0 (diff)
downloadgdb-de9df5fa1def74173d23f492497ab1c59098f78f.zip
gdb-de9df5fa1def74173d23f492497ab1c59098f78f.tar.gz
gdb-de9df5fa1def74173d23f492497ab1c59098f78f.tar.bz2
* 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>.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-m68k.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/config/tc-m68k.h b/gas/config/tc-m68k.h
index 85fb20c..3967f35 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) \