[Nasm-bugs] [Bug 3392586] preprocessor issue with git master

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Wed Aug 7 13:39:53 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392586

Ozkan Sezer <sezeroz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sezeroz at gmail.com

--- Comment #1 from Ozkan Sezer <sezeroz at gmail.com> ---
Reduced test case:
$ cat 1.asm 
%define CACHE_SIZE 32
%define MAXHEIGHT 1024
%define DPS_MAXSPANS MAXHEIGHT+1
%define spanpackage_t_size 32
%define SPAN_SIZE (((DPS_MAXSPANS + 1 + ((CACHE_SIZE - 1) /
spanpackage_t_size)) + 1) * spanpackage_t_size)
D_PolysetDraw:
 sub esp,SPAN_SIZE
$ ./nasm -f elf 1.asm
1.asm:7: error: symbol `DPS_MAXSPANS' not defined


Further reduced test case:
$ cat 2.asm
%define DPS_MAXSPANS 1027
%define SPAN_SIZE (DPS_MAXSPANS * 32)
D_PolysetDraw:
 sub esp,SPAN_SIZE
$ ./nasm -f elf 2.asm
2.asm:4: error: symbol `DPS_MAXSPANS' not defined


Only this one assembles:
$ cat 3.asm
%define DPS_MAXSPANS 1027
D_PolysetDraw:
 sub esp,DPS_MAXSPANS
$ ./nasm -f elf 3.asm
$ echo $?
0

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list