aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-12-28 19:14:37 +0000
committerRichard Henderson <rth@redhat.com>2000-12-28 19:14:37 +0000
commit799051fc87b3473f72cf37a74e28562dae9d7bd7 (patch)
tree340cbc01e7cceab484130c428f7e8df4bda75826
parent0a9ef439079f50221dad9eb5248387236d370c87 (diff)
downloadgdb-799051fc87b3473f72cf37a74e28562dae9d7bd7.zip
gdb-799051fc87b3473f72cf37a74e28562dae9d7bd7.tar.gz
gdb-799051fc87b3473f72cf37a74e28562dae9d7bd7.tar.bz2
* write.c (subsegs_finish): Fix thinko last change -- don't
"optimize" the alignment == 0 case.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/write.c11
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".