nixpkgs/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-2.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
407 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
@@ -197,8 +197,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
.text
.balign 16
.private_extern _\name
- .cfi_startproc
_\name:
+ .cfi_startproc
BTI_C
.endm