[libc-commits] [libc] [libc] Fix strfromf128 entrypoint list entries. (PR #242463)
Alex Strelnikov via libc-commits
libc-commits at lists.llvm.org
Fri Nov 13 12:03:41 PST 2026
https://github.com/strel-12 created https://github.com/llvm/llvm-project/pull/242463
This is a fix of #227743 where entrypoints were not properly guarded on `LIBC_TYPES_HAS_NATIVE_FLOAT128`.
>From db8a76dc359c0945760b76470285df5f710fd880 Mon Sep 17 00:00:00 2001
From: Alex Strelnikov <strel at google.com>
Date: Fri, 13 Nov 2026 20:00:55 +0000
Subject: [PATCH] Correct strfromf128 entrypoint definitions.
---
libc/config/linux/aarch64/entrypoints.txt | 8 +++++++-
libc/config/linux/riscv/entrypoints.txt | 8 +++++++-
libc/config/linux/x86_64/entrypoints.txt | 8 +++++++-
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index aed6852ff9b06..358ae048df0e2 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -244,7 +244,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
- libc.src.stdlib.strfromf128
# TODO: long double support is buggy with clang-11. Re-enable when buildbots are upgraded.
# libc.src.stdlib.strfroml
libc.src.stdlib.strtod
@@ -568,6 +567,13 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.sys.time.gettimeofday
)
+if (LIBC_TYPES_HAS_NATIVE_FLOAT128)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ # stdlib.h _Float128 entrypoints
+ libc.src.stdlib.strfromf128
+ )
+endif()
+
if(LLVM_LIBC_INCLUDE_SCUDO)
list(APPEND TARGET_LIBC_ENTRYPOINTS
# malloc.h external entrypoints
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index dda4f01e36978..65ca423e8d13a 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -275,7 +275,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
- libc.src.stdlib.strfromf128
libc.src.stdlib.strfroml
libc.src.stdlib.strtod
libc.src.stdlib.strtof
@@ -657,6 +656,13 @@ if(LLVM_LIBC_INCLUDE_SCUDO)
)
endif()
+if (LIBC_TYPES_HAS_NATIVE_FLOAT128)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ # stdlib.h _Float128 entrypoints
+ libc.src.stdlib.strfromf128
+ )
+endif()
+
set(TARGET_LIBM_ENTRYPOINTS
# complex.h entrypoints
libc.src.complex.cabs
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index eb5dcd44c8fb7..afba01d20796d 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -275,7 +275,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.stdlib.srand
libc.src.stdlib.strfromd
libc.src.stdlib.strfromf
- libc.src.stdlib.strfromf128
libc.src.stdlib.strfroml
libc.src.stdlib.strtod
libc.src.stdlib.strtof
@@ -657,6 +656,13 @@ if(LLVM_LIBC_INCLUDE_SCUDO)
)
endif()
+if (LIBC_TYPES_HAS_NATIVE_FLOAT128)
+ list(APPEND TARGET_LIBC_ENTRYPOINTS
+ # stdlib.h _Float128 entrypoints
+ libc.src.stdlib.strfromf128
+ )
+endif()
+
set(TARGET_LIBM_ENTRYPOINTS
# complex.h entrypoints
libc.src.complex.cabs
More information about the libc-commits
mailing list