From 3f8416d5e15b58f47c7f7e0ef94f5aadd9fe22f0 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 5 Jul 1995 20:31:31 +0000 Subject: [PATCH] * config/obj-coff.c (obj_coff_line): Call listing_source_line, in both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function. PR 7006. --- gas/ChangeLog | 3 +++ gas/config/obj-coff.c | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 5313453f6f6..94c7301a680 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Wed Jul 5 12:01:49 1995 Ian Lance Taylor + * 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. diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 358e4da0cb1..c82e135a60f 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -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); } -- 2.30.2