diff options
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/write.c | 11 |
2 files changed, 9 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index e6bd737..5608bea 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 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. * frags.c (NOP_OPCODE): Move default from read.c. (MAX_MEM_FOR_RS_ALIGN_CODE): New default. diff --git a/gas/write.c b/gas/write.c index 897e707..24b387e 100644 --- a/gas/write.c +++ b/gas/write.c @@ -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". |