aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-19 14:24:05 +1030
committerAlan Modra <amodra@gmail.com>2021-03-19 20:12:30 +1030
commit826b97d42de2bf5162e34a690898598cb22332fb (patch)
tree312a37b8f60801fba575c0edbfcd592d2ede9207 /gas
parentfba7f7533c97d03d86f648a42375212c38980706 (diff)
downloadgdb-826b97d42de2bf5162e34a690898598cb22332fb.zip
gdb-826b97d42de2bf5162e34a690898598cb22332fb.tar.gz
gdb-826b97d42de2bf5162e34a690898598cb22332fb.tar.bz2
gas/app.c don't throw away spaces before slash
I don't know really why we should lose a space before a '/'. Possibly it would make sense if '/' started a comment, but otherwise no. * app.c (do_scrub_chars): Don't lose spaces before a slash.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog4
-rw-r--r--gas/app.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2953d5d..6676811 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2021-03-19 Alan Modra <amodra@gmail.com>
+
+ * app.c (do_scrub_chars): Don't lose spaces before a slash.
+
2021-03-18 Christian Groessler <chris@groessler.org>
* config/tc-z8k.c (apply_fix): Handle 7-bit relocations correctly.
diff --git a/gas/app.c b/gas/app.c
index 89b3913..712bffe 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -874,7 +874,6 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen)
}
#endif
if (IS_COMMENT (ch)
- || ch == '/'
|| IS_LINE_SEPARATOR (ch)
|| IS_PARALLEL_SEPARATOR (ch))
{