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: unassignedclangb...@nondot.org
Reporter: ndesaulni...@google.com
CC: caij2...@gmail.com, echri...@gmail.com,
htmldevelo...@gmail.com, i...@maskray.me,
llvm-bugs@lists.llvm.org, neeil...@live.com,
richard-l...@metafoo.co.uk, srhi...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs