diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-01-03 03:07:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-01-03 03:07:01 +0000 |
commit | a986926b11a79aff93f135b4ef58902128299c0f (patch) | |
tree | b0fb853f3bbb02ebd450f7cd076ffee208bbb69c /gas/config/tc-m68k.c | |
parent | cbc3424197053ac5c564dd40edfe4efa6801d93b (diff) | |
download | gdb-a986926b11a79aff93f135b4ef58902128299c0f.zip gdb-a986926b11a79aff93f135b4ef58902128299c0f.tar.gz gdb-a986926b11a79aff93f135b4ef58902128299c0f.tar.bz2 |
Based on patch from Ronald F. Guilmette <rfg@monkeys.com>:
* read.c (read_a_source_file): Check for conditional operators
before doing an MRI pending alignment.
* config/tc-m68k.h (m68k_conditional_pseudoop): Declare.
(tc_conditional_pseudop): Define.
* config/tc-m68k.c (m68k_conditional_pseudop): New function.
* doc/internals.texi (CPU backend): Describe
tc_conditional_pseudoop.
Diffstat (limited to 'gas/config/tc-m68k.c')
-rw-r--r-- | gas/config/tc-m68k.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 27ace69..0e40fa3 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -4715,6 +4715,18 @@ s_proc (ignore) /* Pseudo-ops handled for MRI compatibility. */ +/* This function returns non-zero if the argument is a conditional + pseudo-op. This is called when checking whether a pending + alignment is needed. */ + +int +m68k_conditional_pseudoop (pop) + pseudo_typeS *pop; +{ + return (pop->poc_handler == s_mri_if + || pop->poc_handler == s_mri_else); +} + /* Handle an MRI style chip specification. */ static void |