[llvm-bugs] [Bug 45051] New: [iA] LOCAL label .altmacro syntax unsupported

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 27 15:02:11 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=45051

            Bug ID: 45051
           Summary: [iA] LOCAL label .altmacro syntax unsupported
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: caij2003 at gmail.com, echristo at gmail.com,
                    htmldeveloper at gmail.com, i at maskray.me,
                    llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk, srhines at google.com
            Blocks: 4068

Buiding the RISC-V Linux kernel w/ Clang, we hit this error, ex:

```
.altmacro
.macro foo
LOCAL bar
bar:
jmp bar
.endm

foo
```
<instantiation>:1:1: error: invalid instruction mnemonic 'local'


We can work around this via local labels, ie:

```
.macro foo
1:
jmp 1b
.endm

foo

```

https://sourceware.org/binutils/docs/as/Macro.html#Macro documents `LOCAL`:
Warning: LOCAL is only available if you select “alternate macro syntax” with
‘--alternate’ or .altmacro. See .altmacro.

https://sourceware.org/binutils/docs/as/Altmacro.html#Altmacro


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200227/90081f3f/attachment-0001.html>


More information about the llvm-bugs mailing list