aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-31 22:11:23 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-31 22:11:23 +0000
commit20868ec6471a8307f1c8650aa274437919136d6c (patch)
tree5d03a7266c54f1ae3e80bbddbfcc94b3e9de7302 /gas/read.c
parent7c342fc5b030ab7de1d719a1c772c0aaa5b25033 (diff)
downloadgdb-20868ec6471a8307f1c8650aa274437919136d6c.zip
gdb-20868ec6471a8307f1c8650aa274437919136d6c.tar.gz
gdb-20868ec6471a8307f1c8650aa274437919136d6c.tar.bz2
* read.c (read_a_source_file): Check mri_pending_align after
checking for a macro. From Ronald F. Guilmette <rfg@monkeys.com>.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/gas/read.c b/gas/read.c
index 12bfa6e..08084af 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -44,7 +44,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307
#include "subsegs.h"
#include "sb.h"
#include "macro.h"
-#include "libiberty.h"
#include "obstack.h"
#include "listing.h"
#include "ecoff.h"
@@ -727,15 +726,9 @@ read_a_source_file (name)
goto quit;
}
else
- { /* machine instruction */
+ {
int inquote = 0;
- if (mri_pending_align)
- {
- do_align (1, (char *) NULL, 0);
- mri_pending_align = 0;
- }
-
/* WARNING: c has char, which may be end-of-line. */
/* Also: input_line_pointer->`\0` where c was. */
*input_line_pointer = c;
@@ -789,6 +782,12 @@ read_a_source_file (name)
}
}
+ if (mri_pending_align)
+ {
+ do_align (1, (char *) NULL, 0);
+ mri_pending_align = 0;
+ }
+
md_assemble (s); /* Assemble 1 instruction. */
*input_line_pointer++ = c;
@@ -975,6 +974,10 @@ read_a_source_file (name)
} /* while (more buffers to scan) */
quit:
+
+#ifdef md_cleanup
+ md_cleanup();
+#endif
input_scrub_close (); /* Close the input file */
}