From: Nick Clifton Date: Sat, 30 Jun 2001 10:09:40 +0000 (+0000) Subject: Treat a .ln directive outside of a function as a .appline directive. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e237d851a44c35b52e5799bb4c2da6d8eafe2285;p=binutils-gdb.git Treat a .ln directive outside of a function as a .appline directive. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index f7484949fe7..71a50c7756d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-06-28 Nick Clifton + + * config/obj-coff.c (obj_coff_ln): Treat a .ln directive + outside of a function as a .appline directive. + 2001-06-28 Eric Christopher H.J. Lu diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 8de8c62ca92..30a5fe89985 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -493,13 +493,13 @@ obj_coff_ln (appline) } l = get_absolute_expression (); - if (!appline) - { - add_lineno (frag_now, frag_now_fix (), l); - } - if (appline) + /* If there is no lineno symbol, treat a .ln + directive as if it were a .appline directive. */ + if (appline || current_lineno_sym == NULL) new_logical_line ((char *) NULL, l - 1); + else + add_lineno (frag_now, frag_now_fix (), l); #ifndef NO_LISTING {