Remove conditionals causing a bug in listings.
authorTimothy Wall <twall@alum.mit.edu>
Fri, 4 Feb 2000 19:45:19 +0000 (19:45 +0000)
committerTimothy Wall <twall@alum.mit.edu>
Fri, 4 Feb 2000 19:45:19 +0000 (19:45 +0000)
gas/ChangeLog
gas/listing.c

index 58133a1b5f81354614fd4b1af9b7fc00e0d8f892..600a855ef56922ef48874e82bb53e4ccf149a3e3 100644 (file)
@@ -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
index 441cac2b3ea5c412c0740d04455515beba18d8fe..0df6aa1e916c78dfd4f5d7d642ce77707356920a 100644 (file)
@@ -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++;