[Nasm-bugs] [Bug 3392699] New: having empty define at the end of macro expansion breaks GLOBAL

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Thu Jul 16 10:16:25 PDT 2020


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

            Bug ID: 3392699
           Summary: having empty define at the end of macro expansion
                    breaks GLOBAL
           Product: NASM
           Version: 2.15 (development)
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: yuripv at yuripv.dev
                CC: chang.seok.bae at intel.com, gorcunov at gmail.com,
                    hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Build from source archive using configure

The following test case worked in 2.14.02 and in 2.15.02 it produces a warning
and doesn't apply "global" to the symbol (reduced from isa-l_crypto build):

%define FUNCT_EXTENSION

%define FN_NAME(x,y) test_ %+ x %+ _ %+ y %+ FUNCT_EXTENSION

global FN_NAME(foo, bar)
FN_NAME(foo, bar):
        nop
        ret

The warning from 2.15.02:

tc.asm:5: warning: improperly calling multi-line macro `global' with 0
parameters [-w+macro-params-legacy]

[3]     |                   0|                   0|NOTY |LOCL |0    |1     
|test_foo_bar

2.14.02:

[3]     |                   0|                   0|NOTY |GLOB |0    |1     
|test_foo_bar

-- 
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