* write.c (subsegs_finish): Fix thinko last change -- don't
authorRichard Henderson <rth@redhat.com>
Thu, 28 Dec 2000 19:14:37 +0000 (19:14 +0000)
committerRichard Henderson <rth@redhat.com>
Thu, 28 Dec 2000 19:14:37 +0000 (19:14 +0000)
        "optimize" the alignment == 0 case.

gas/ChangeLog
gas/write.c

index e6bd737..5608bea 100644 (file)
@@ -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.
index 897e707..24b387e 100644 (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".