[LLVMbugs] [Bug 9248] New: [mc] no support for .macro with arguments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 18 21:19:00 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=9248

           Summary: [mc] no support for .macro with arguments
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


llvm-mc rejects this file:

 .macro macroname argone argtwo 
 .endm

with:

  $ llvm-mc -assemble -filetype=obj y.s
  y.s:1:19: error: unexpected token in '.macro' directive
   .macro macroname argone argtwo
                    ^
  y.s:2:7: error: unexpected '.endm' in file, no current macro definition
   .endm
        ^

while as is fine with it. The unknown tokens are arguments to the macro,
documented in GAS here: http://sourceware.org/binutils/docs-2.21/as/Macro.html

This is blocking arch/x86/include/asm/inst.h in the linux kernel.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list