aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-08 19:17:46 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-08 19:17:46 +0000
commit92a25e12ff43f233d7b73a59a82e811cb5754c40 (patch)
tree745ffb170c10c61c11a595ff6e6012f51f01bc3c /gas/app.c
parent138b11d825753bef6aaae5ebe1e9c02c94ab1924 (diff)
downloadgdb-92a25e12ff43f233d7b73a59a82e811cb5754c40.zip
gdb-92a25e12ff43f233d7b73a59a82e811cb5754c40.tar.gz
gdb-92a25e12ff43f233d7b73a59a82e811cb5754c40.tar.bz2
* app.c (do_scrub_chars): In MRI mode, keep a space before a
possible comment character. * config/tc-m68k.c (m68k_ip): In MRI mode, ignore anything after an instruction which takes no operands.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c
index 7b7ea15..a858163 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -587,6 +587,13 @@ do_scrub_chars (get, tostart, tolen)
/* cpp never outputs a leading space before the #, so
try to avoid being confused. */
not_cpp_line = 1;
+ if (flag_mri)
+ {
+ /* In MRI mode, we keep these spaces. */
+ UNGET (ch);
+ PUT (' ');
+ break;
+ }
goto recycle;
}