Files
nixpkgs/pkgs/development/compilers/gcc/patches/cfi_startproc-reorder-label-14-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
434 B
Diff

this patch fixes build for clang-18+
diff --git a/libgcc/config/aarch64/lse.S b/libgcc/config/aarch64/lse.S
index ecef47086..b478dd4d9 100644
--- a/libgcc/config/aarch64/lse.S
+++ b/libgcc/config/aarch64/lse.S
@@ -174,8 +174,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
.globl \name
HIDDEN(\name)
SYMBOL_TYPE(\name, %function)
- .cfi_startproc
\name:
+ .cfi_startproc
.endm
.macro ENDFN name