aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coff.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-06-30 10:09:40 +0000
committerNick Clifton <nickc@redhat.com>2001-06-30 10:09:40 +0000
commite237d851a44c35b52e5799bb4c2da6d8eafe2285 (patch)
tree529d3e400d6ac22e6855211255ba54669eaffb24 /gas/config/obj-coff.c
parent100bf2520073ba27db995e1199a35663b6b8a95f (diff)
downloadgdb-e237d851a44c35b52e5799bb4c2da6d8eafe2285.zip
gdb-e237d851a44c35b52e5799bb4c2da6d8eafe2285.tar.gz
gdb-e237d851a44c35b52e5799bb4c2da6d8eafe2285.tar.bz2
Treat a .ln directive outside of a function as a .appline directive.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r--gas/config/obj-coff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 8de8c62..30a5fe8 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
{