aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m32r.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-12 16:49:51 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-12 16:49:51 +0000
commitb9e57a387a6bdc15fd8bf477dc4d45131f0307d6 (patch)
tree83767656ddf103d5231f1d4348bb71e6f8401955 /gas/config/tc-m32r.c
parentd84feeaca53698f5e014813e923abe6807e13f22 (diff)
downloadgdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.zip
gdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.tar.gz
gdb-b9e57a387a6bdc15fd8bf477dc4d45131f0307d6.tar.bz2
* 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.
Diffstat (limited to 'gas/config/tc-m32r.c')
-rw-r--r--gas/config/tc-m32r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-m32r.c b/gas/config/tc-m32r.c
index 76fb9ab..9a10824 100644
--- a/gas/config/tc-m32r.c
+++ b/gas/config/tc-m32r.c
@@ -245,7 +245,7 @@ m32r_do_align (n, fill, len, max)
{
/* Only do this if the fill pattern wasn't specified. */
if (fill == NULL
- && (now_seg->flags & SEC_CODE) != 0
+ && subseg_text_p (now_seg)
/* Only do this special handling if aligning to at least a
4 byte boundary. */
&& n > 1