nixpkgs/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-09-1.diff
Reno Dakota 2de1b4b14e gcc{10,11,12,13,14}: reorder .cfi_startproc with label
fixes llvm-18+ builds which require that an asm label precedes the
.cfi_startproc pseudo instruction.
2024-11-20 02:33:33 +00:00

17 lines
416 B
Diff

this patch fixes build for clang-18+
diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S
index d3235bc33..1a56eb61c 100644
--- a/libgcc/config/aarch64/lse.S
+++ b/libgcc/config/aarch64/lse.S
@@ -170,8 +170,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
.globl \name
.hidden \name
.type \name, %function
- .cfi_startproc
\name:
+ .cfi_startproc
BTI_C
.endm