aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/listing.c14
2 files changed, 5 insertions, 14 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 58133a1..600a855 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-04 Timothy Wall <twall@redhat.com>
+
+ * listing.c (print_lines): Remove conditionals causing bug in
+ listings.
+
2000-02-03 Timothy Wall <twall@cygnus.com>
* as.h: Define OCTETS_PER_BYTE and OCTETS_PER_BYTE_POWER
diff --git a/gas/listing.c b/gas/listing.c
index 441cac2..0df6aa1 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -713,15 +713,8 @@ print_lines (list, lineno, string, address)
while (src[cur] && idx < nchars)
{
int offset;
-#if TARGET_BYTES_BIG_ENDIAN != 0
offset = cur;
fprintf (list_file, "%c%c", src[offset], src[offset+1]);
-#else
- offset = (cur & ~(LISTING_WORD_SIZE * 2 - 1))
- + (LISTING_WORD_SIZE - octet_in_word - 1) * 2;
- if (offset < end)
- fprintf (list_file, "%c%c", src[offset], src[offset+1]);
-#endif
cur += 2;
octet_in_word++;
@@ -764,15 +757,8 @@ print_lines (list, lineno, string, address)
while (src[cur] && idx < nchars)
{
int offset;
-#if TARGET_BYTES_BIG_ENDIAN != 0
offset = cur;
fprintf (list_file, "%c%c", src[offset], src[offset+1]);
-#else
- offset = (cur & ~(LISTING_WORD_SIZE * 2 - 1))
- + (LISTING_WORD_SIZE - octet_in_word - 1) * 2;
- if (offset < end)
- fprintf (list_file, "%c%c", src[offset], src[offset+1]);
-#endif
cur += 2;
idx += 2;
octet_in_word++;