aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-05-18 09:35:29 +0200
committerJan Beulich <jbeulich@suse.com>2022-05-18 09:35:29 +0200
commit818432e841552c2271861200e39ef1f877751ecc (patch)
treee768d6b24d7a88fa3ddc83a92dd3cdaaa494d4d8 /gas/macro.c
parent01ae03b5b9d18396fc765d98e9212133fe07c53a (diff)
downloadgdb-818432e841552c2271861200e39ef1f877751ecc.zip
gdb-818432e841552c2271861200e39ef1f877751ecc.tar.gz
gdb-818432e841552c2271861200e39ef1f877751ecc.tar.bz2
gas: tweak .irp and alike file/line handling for M68K/MRI
In commit 2ee1792bec22 ("gas: further adjust file/line handling for .irp and alike") I neglected the need to omit the leading . in M68K/MRI mode.
Diffstat (limited to 'gas/macro.c')
-rw-r--r--gas/macro.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/macro.c b/gas/macro.c
index c8ebcab..3aba78f 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -136,7 +136,10 @@ buffer_and_nest (const char *from, const char *to, sb *ptr,
char *linefile;
as_where (&line);
- linefile = xasprintf ("\t.linefile %u .\n", line);
+ if (!flag_m68k_mri)
+ linefile = xasprintf ("\t.linefile %u .\n", line);
+ else
+ linefile = xasprintf ("\tlinefile %u .\n", line);
sb_add_buffer (ptr, linefile, strlen (linefile));
xfree (linefile);
}