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/read.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/read.c')
-rw-r--r-- | gas/read.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* read.c - read a source file - - Copyright (C) 1986, 87, 90, 91, 92, 93, 94, 95, 1996 + Copyright (C) 1986, 87, 90, 91, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -692,7 +692,16 @@ read_a_source_file (name) || ! ((pop->poc_handler == cons && pop->poc_val == 1) || (pop->poc_handler == s_space - && pop->poc_val == 1)))) + && pop->poc_val == 1) +#ifdef tc_conditional_pseudoop + || tc_conditional_pseudoop (pop) +#endif + || pop->poc_handler == s_if + || pop->poc_handler == s_ifdef + || pop->poc_handler == s_ifc + || pop->poc_handler == s_ifeqs + || pop->poc_handler == s_else + || pop->poc_handler == s_endif))) { do_align (1, (char *) NULL, 0); mri_pending_align = 0; |