* write.c (subsegs_finish): Fix thinko last change -- don't

"optimize" the alignment == 0 case.
This commit is contained in:
Richard Henderson 2000-12-28 19:14:37 +00:00
parent 0a9ef43907
commit 799051fc87
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2000-12-28 Richard Henderson <rth@redhat.com>
* write.c (subsegs_finish): Fix thinko last change -- don't
"optimize" the alignment == 0 case.
2000-12-28 Richard Henderson <rth@redhat.com>
* as.h (rs_align_test): New.

View File

@ -1413,13 +1413,10 @@ subsegs_finish ()
if (!frchainP->frch_next || frchainP->frch_next->frch_seg != now_seg)
alignment = get_recorded_alignment (now_seg);
if (alignment > 0)
{
if (subseg_text_p (now_seg))
frag_align_code (alignment, 0);
else
frag_align (alignment, 0, 0);
}
if (subseg_text_p (now_seg))
frag_align_code (alignment, 0);
else
frag_align (alignment, 0, 0);
/* frag_align will have left a new frag.
Use this last frag for an empty ".fill".