preproc: fix %{:} macro operand ranges
commite99a946390e561804bf624a1e67f25ae34b13dfd
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 30 Jun 2020 18:51:41 +0000 (30 11:51 -0700)
committerH. Peter Anvin (Intel) <hpa@zytor.com>
Tue, 30 Jun 2020 18:51:41 +0000 (30 11:51 -0700)
tree79b64c9f824147a7371bb6c3336035a00e01399f
parent5c85b7f87b71134d95dbb01c69406cc08a7f9503
preproc: fix %{:} macro operand ranges

Fix the handling of %{:} macro operands. Use the same code for
expanding the subarguments as for normal arguments.

This (hopefully) resolves the following bug reports:
  BR 3392611, BR 3392686, BR 3392688

Reported-by: <coconutfaistoslimeregistry@gmail.com>
Reported-by: Jasper Lievisse Adriaanse <r+nasm@jasper.la>
Reported-by: Jason Hood <jadoxa@yahoo.com.au>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
asm/preproc.c
test/emptyarg.asm [changed from symlink to file mode: 0644]