diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-07-19 11:54:09 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-07-19 11:54:09 +0200 |
commit | 0d96d156aca0aa022f174be4add3d3cb56d7f6b7 (patch) | |
tree | ea3e58d79d83bd525bcb964bda2e900a1614d92f /gas/doc | |
parent | da0fa10a4e0967be13cfa86a64a992602161b31d (diff) | |
download | gdb-0d96d156aca0aa022f174be4add3d3cb56d7f6b7.zip gdb-0d96d156aca0aa022f174be4add3d3cb56d7f6b7.tar.gz gdb-0d96d156aca0aa022f174be4add3d3cb56d7f6b7.tar.bz2 |
gas: consistently drop trailing whitespace when scrubbing
From especially the checks for the two separator forms it appears to
follow that the construct being touched is about trailing whitespace. In
such a case, considering that for many targets ordinary and line comment
chars overlap, take into account that line comment chars override
ordinary ones in lex[] (logic elsewhere in do_scrub_chars() actually
depends on that ordering, and also accounts for this overriding).
Plus of course IS_NEWLINE() would better also be consulted. Note also
that the DOUBLESLASH_LINE_COMMENTS change should generally have no
effect just yet; it's a prereq for a later change but better fits here.
Leave respective comments as well, and update documentation to correct
which comment form is actually replaced by a single blank (i.e. neither
the ones starting with what {,tc_}comment_chars[] has nor the ones
starting with what line_comment_chars[] has).
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/as.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/doc/as.texi b/gas/doc/as.texi index b2a3f24..3501744 100644 --- a/gas/doc/as.texi +++ b/gas/doc/as.texi @@ -2990,11 +2990,11 @@ as exactly one space. @section Comments @cindex comments -There are two ways of rendering comments to @command{@value{AS}}. In both -cases the comment is equivalent to one space. +There are two ways of rendering comments to @command{@value{AS}}. Anything from @samp{/*} through the next @samp{*/} is a comment. -This means you may not nest these comments. +This means you may not nest these comments. Such a comment is equivalent to +one space, plus bumping the line counter accordingly. @smallexample /* |