[libc-commits] [libc] ebd7065 - [libc] Fix strfromf128 entrypoint list entries. (#242463)

via libc-commits libc-commits at lists.llvm.org
Fri Nov 13 12:15:40 PST 2026


Author: Alex Strelnikov
Date: 2026-11-13T20:15:34Z
New Revision: ebd7065ca1f9f3beb15a0e13085613cd9795f168

URL: https://github.com/llvm/llvm-project/commit/ebd7065ca1f9f3beb15a0e13085613cd9795f168
DIFF: https://github.com/llvm/llvm-project/commit/ebd7065ca1f9f3beb15a0e13085613cd9795f168.diff

LOG: [libc] Fix strfromf128 entrypoint list entries. (#242463)

This is a fix of #227743 where entrypoints were not properly guarded on
`LIBC_TYPES_HAS_NATIVE_FLOAT128`.

Added: 
    

Modified: 
    libc/config/linux/aarch64/entrypoints.txt
    libc/config/linux/riscv/entrypoints.txt
    libc/config/linux/x86_64/entrypoints.txt

Removed: 
    


################################################################################
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