git: fcc5fa091ebb - main - libcompiler_rt: gcc13 doesn't support _Float16 on arm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 23 May 2024 16:27:57 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=fcc5fa091ebb89db48d8fbda9b74c25bd44357b8 commit fcc5fa091ebb89db48d8fbda9b74c25bd44357b8 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-05-23 16:26:51 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2024-05-23 16:27:37 +0000 libcompiler_rt: gcc13 doesn't support _Float16 on arm Don't set CRT_COMMON_F16_ARCH for arm as it's not supported by gcc13. Differential Revision: https://reviews.freebsd.org/D45234 --- lib/libcompiler_rt/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc index 6fb13cb12305..bdb6b93e6fda 100644 --- a/lib/libcompiler_rt/Makefile.inc +++ b/lib/libcompiler_rt/Makefile.inc @@ -233,7 +233,6 @@ SRCF+= comparesf2 # Helper to reduce complexity of _Float16 and __bf16 statements below. .if ${MACHINE_CPUARCH} == "aarch64" || \ ${MACHINE_CPUARCH} == "amd64" || \ - ${MACHINE_CPUARCH} == "arm" || \ (${MACHINE_CPUARCH} == "i386" && !empty(MACHINE_CPU:Msse2)) CRT_COMMON_F16_ARCH=t .endif @@ -243,7 +242,8 @@ CRT_COMMON_F16_ARCH=t # versions. # .if ((${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000) && \ - (defined(CRT_COMMON_F16_ARCH) || ${MACHINE_CPUARCH} == "riscv")) || \ + (defined(CRT_COMMON_F16_ARCH) || \ + ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "riscv")) || \ ((${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120000) && \ (defined(CRT_COMMON_F16_ARCH))) CFLAGS+= -DCOMPILER_RT_HAS_FLOAT16