* config/obj-coff.c (obj_coff_line): Call listing_source_line, in
authorIan Lance Taylor <ian@airs.com>
Wed, 5 Jul 1995 20:31:31 +0000 (20:31 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 5 Jul 1995 20:31:31 +0000 (20:31 +0000)
both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
PR 7006.

gas/ChangeLog
gas/config/obj-coff.c

index 5313453f6f650e0d03fca9ad8d212ff4d20eaca7..94c7301a680ca12a3c979fad79f46033ee79710a 100644 (file)
@@ -1,5 +1,8 @@
 Wed Jul  5 12:01:49 1995  Ian Lance Taylor  <ian@cygnus.com>
 
+       * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
+       both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
+
        * symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
        (S_CLEAR_EXTERNAL): Likewise.
        (S_SET_WEAK): Warn if symbol is global.
index 358e4da0cb137b2c0675d006eaba060a9a3534d7..c82e135a60f67df8ebdc41967bef6cfa4970e56e 100644 (file)
@@ -772,6 +772,16 @@ obj_coff_line (ignore)
   SA_SET_SYM_LNNO (def_symbol_in_progress, coff_line_base);
 
   demand_empty_rest_of_line ();
+
+#ifndef NO_LISTING
+  if (strcmp (".bf", S_GET_NAME (def_symbol_in_progress)) == 0)
+    {
+      extern int listing;
+
+      if (listing)
+       listing_source_line ((unsigned int) coff_line_base);
+    }
+#endif
 }
 
 static void
@@ -2267,7 +2277,7 @@ obj_coff_line (ignore)
 #ifndef NO_LISTING
       {
        extern int listing;
-       if (listing && 0)
+       if (listing)
          {
            listing_source_line ((unsigned int) line_base);
          }