[Nasm-bugs] [Bug 3392573] New: nasm 2.12.01 (from Debian 9) ignores %warning and %error within conditional blocks
noreply-nasm at gorcunov.org
noreply-nasm at gorcunov.org
Sat Jun 8 09:10:38 PDT 2019
https://bugzilla.nasm.us/show_bug.cgi?id=3392573
Bug ID: 3392573
Summary: nasm 2.12.01 (from Debian 9) ignores %warning and
%error within conditional blocks
Product: NASM
Version: 2.12.xx
Hardware: Other x86
OS: Linux
Status: OPEN
Severity: critical
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: pushbx at 38.de
CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
hpa at zytor.com, nasm-bugs at nasm.us
Obtained from: From OS distribution
$ nasm -v
NASM version 2.12.01
$ cat test.asm
%ifdef ONE
%warning warning
db 1
%endif
%ifdef TWO
%error error
db 2
%endif
%ifdef THREE
%fatal fatal
db 3
%endif
$ nasm test.asm -o test.bin -l test.lst
$ nasm test.asm -o test.bin -l test.lst -DONE
$ nasm test.asm -o test.bin -l test.lst -DTWO
$ nasm test.asm -o test.bin -l test.lst -DTHREE
test.asm:10: fatal: fatal
$ nasm test.asm -o test.bin -l test.lst -DONE -DTWO
$ nasm test.asm -o test.bin -l test.lst -DONE -DTHREE
test.asm:10: fatal: fatal
$ nasm test.asm -o test.bin -l test.lst -DTWO -DTHREE
test.asm:10: fatal: fatal
$ nasm test.asm -o test.bin -l test.lst -DONE -DTWO -DTHREE
test.asm:10: fatal: fatal
$ nasm test.asm -o test.bin -l test.lst -DONE -DTWO
$ cat test.lst
1 %ifdef ONE
2 %warning warning
3 00000000 01 db 1
4 %endif
5 %ifdef TWO
6 %error error
7 00000001 02 db 2
8 %endif
9 %ifdef THREE
10 %fatal fatal
11 db 3
12 %endif
$
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list