binutils-gdb/gas/doc
Jan Beulich b3446f947b gas: retain whitespace between strings
Macro arguments may be separated by commas or just whitespace. Macro
arguments may also be quoted (where one level of quotes is removed in
the course of determining the values for the respective formal
parameters). Furthermore this quote removal knows _two_ somewhat odd
escaping mechanisms: One, apparently in existence forever, is that a
pair of quotes counts as the escaping of a quote, with the pair being
transformed to a single quote in the course of quote removal. The other
(introduced by c06ae4f232) looks more usual on the surface in that it
deals with \" sequences, but it _retains_ the escaping \. Hence only the
former mechanism is suitable when the value to be used by the macro body
is to contain a quote. Yet this results in ambiguity of what "a""b" is
intended to mean; elsewhere (e.g. for .ascii) it represents two
successive string literals. However, in any event is the above different
from "a" "b": I don't think this can be viewed the same as "a""b" when
processing macro arguments.

Change the scrubber to retain such whitespace, by making the processing
of strings more similar to that of symbols. And indeed this appears to
make sense when taking into account that for quite a while gas has been
supporting quoted symbol names.

Taking a more general view, however, the change doesn't go quite far
enough. There are further cases where significant whitespace is removed
by the scrubber. The new testcase enumerates a few in its ".if 0"
section. I'm afraid the only way that I see to deal with this would be
to significantly simplify the scrubber, such that it wouldn't do much
more than collapse sequences of unquoted whitespace into a single blank.
To be honest problems in this area aren't really surprising when seeing
that there's hardly any checking of .macro use throughout the testsuite
(and in particular in the [relatively] generic tests under all/).
2022-03-23 08:41:54 +01:00
..
all.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
as.texi gas: retain whitespace between strings 2022-03-23 08:41:54 +01:00
c-aarch64.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-alpha.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-arc.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-arm.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-avr.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-bfin.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-bpf.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-cr16.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-cris.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-csky.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-d10v.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-d30v.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-epiphany.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-h8300.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-hppa.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-i386.texi x86: drop L1OM/K1OM support from gas 2022-03-17 11:02:42 +01:00
c-ia64.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-ip2k.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-lm32.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-loongarch.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-m32c.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-m32r.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-m68hc11.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-m68k.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-metag.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-microblaze.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-mips.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-mmix.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-msp430.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-mt.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-nds32.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-nios2.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-ns32k.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-or1k.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-pdp11.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-pj.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-ppc.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-pru.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-riscv.texi RISC-V: Fix misplaced @end table 2022-03-20 19:04:05 +01:00
c-rl78.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-rx.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-s12z.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-s390.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-score.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-sh.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-sparc.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-tic6x.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-tic54x.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-tilegx.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-tilepro.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-v850.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-vax.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-visium.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-wasm32.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-xc16x.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-xgate.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-xstormy16.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-xtensa.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-z8k.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
c-z80.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
fdl.texi
h8.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
internals.texi Update year range in copyright notice of binutils files 2022-01-02 12:04:28 +10:30
local.mk gas: drop old cygnus install hack 2022-01-24 19:58:33 -05:00