diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-02-08 00:22:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-02-08 00:22:02 +0000 |
commit | 71dd3c40ca2f64cad99a6eba7b53fb6c2aedc641 (patch) | |
tree | 88b3b6d53d9ccc089596ae31bbd495883c8eb945 /gas/config/tc-sh.c | |
parent | 9addcbb1821ad664a6c180820fdd10d31c9fcbf2 (diff) | |
download | gdb-71dd3c40ca2f64cad99a6eba7b53fb6c2aedc641.zip gdb-71dd3c40ca2f64cad99a6eba7b53fb6c2aedc641.tar.gz gdb-71dd3c40ca2f64cad99a6eba7b53fb6c2aedc641.tar.bz2 |
* read.c (potable): Add balignw, balignl, p2alignw, and p2alignl.
(do_align): Take new len parameter. Change all callers. Pass it
to md_do_align.
(s_align_bytes): Arg now indicates the length of the fill pattern.
(s_align_ptwo): Likewise.
* config/obj-coff.c (write_object_file): Pass length to
md_do_align.
* config/tc-i386.h (md_do_align): Take new len parameter.
* config/tc-m88k.h (md_do_align): Likewise.
* config/tc-m88k.c (m88k_do_align): Likewise.
* config/tc-sh.h (md_do_align): Likewise.
* config/tc-sh.c (sh_do_align): Likewise.
* doc/as.texinfo: Document new pseudo-ops.
* config/obj-coff.c (fixup_mdeps): Divide offset by fr_var, as is
done in cvt_frag_to_fill.
PR 8974.
Diffstat (limited to 'gas/config/tc-sh.c')
-rw-r--r-- | gas/config/tc-sh.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index a64f818..66a789b 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -1,6 +1,6 @@ /* tc-sh.c -- Assemble code for the Hitachi Super-H - Copyright (C) 1993, 1994, 1995 Free Software Foundation. + Copyright (C) 1993, 94, 95, 1996 Free Software Foundation. This file is part of GAS, the GNU Assembler. @@ -1697,11 +1697,12 @@ tc_coff_sizemachdep (frag) /* When we align the .text section, insert the correct NOP pattern. */ int -sh_do_align (n, fill) +sh_do_align (n, fill, len) int n; const char *fill; + int len; { - if ((fill == NULL || *fill == 0) + if ((fill == NULL || (*fill == 0 && len == 1)) && (now_seg == text_section #ifdef BFD_ASSEMBLER || (now_seg->flags & SEC_CODE) != 0 |