From b9e57a387a6bdc15fd8bf477dc4d45131f0307d6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 12 Jun 1999 16:49:51 +0000 Subject: * subsegs.c (subseg_text_p): New function. * as.h (subseg_text_p): Declare. * read.c (do_align): Use subseg_text_p to set the default fill. * write.c (subsegs_finish): Likewise. * config/obj-coff.c (write_object_file): Likewise. * config/tc-i386.h (md_maybe_text): Don't define. (md_do_align): Use subseg_text_p to set the default fill. * config/tc-m32r.c (m32r_do_align): Likewise. * config/tc-sh.c (sh_do_align): Likewise. * config/tc-sparc.h (md_do_align): Likewise. --- gas/write.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gas/write.c') diff --git a/gas/write.c b/gas/write.c index cd74c70..3a49234 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1372,7 +1372,8 @@ subsegs_finish () any alignment is meaningless, and, moreover, will look weird if we are generating a listing. */ frag_align (had_errors () ? 0 : SUB_SEGMENT_ALIGN (now_seg), - NOP_OPCODE, 0); + subseg_text_p (now_seg) ? NOP_OPCODE : 0, + 0); /* frag_align will have left a new frag. Use this last frag for an empty ".fill". -- cgit v1.1