gas/app.c don't throw away spaces before slash

Message ID 20210319094530.GO6791@bubble.grove.modra.org
State New
Headers show
Series
  • gas/app.c don't throw away spaces before slash
Related show

Commit Message

Stafford Horne via Binutils March 19, 2021, 9:45 a.m.
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.


-- 
Alan Modra
Australia Development Lab, IBM

Patch

diff --git a/gas/app.c b/gas/app.c
index 89b39130bf..712bffef85 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))
 	    {