Closed
Description
❯ cat test.s
.globl foo
.align 2
.type foo,@function
.cfi_startproc
.cfi_label .Ldummy
.cfi_endproc
❯ riscv64-linux-gnu-gcc test.s -c
❯ /opt/llvm/bin/clang -target riscv64 test.s -c
test.s:5:1: error: unknown directive
.cfi_label .Ldummy
^
❯ /opt/llvm/bin/clang --version
clang version 18.1.6 (https://github.com/llvm/llvm-project 1118c2e05e67a36ed8ca250524525cdb66a55256)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/bin
This is currently a blocker for compiling glibc with Clang for ARC, C-SKY, LoongArch, and RISC-V, as these all make use of .cfi_label
in their start.S
(example).