[libc-commits] [libc] ee91799 - [libc] Update supported riscv libs

Mikhail R. Gadelha via libc-commits libc-commits at lists.llvm.org
Mon Apr 17 12:14:11 PDT 2023


Author: Mikhail R. Gadelha
Date: 2023-04-17T16:13:48-03:00
New Revision: ee917996708c936dd7f275de06b7895f5e3c11ec

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

LOG: [libc] Update supported riscv libs

This patch updates the list of supported libs according to the latest changes to x86_64

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D147961

Added: 
    

Modified: 
    libc/config/linux/riscv64/entrypoints.txt
    libc/config/linux/riscv64/headers.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/riscv64/entrypoints.txt b/libc/config/linux/riscv64/entrypoints.txt
index 255c5263a53e8..c770413da0a60 100644
--- a/libc/config/linux/riscv64/entrypoints.txt
+++ b/libc/config/linux/riscv64/entrypoints.txt
@@ -118,6 +118,8 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.stdio.remove
     libc.src.stdio.sprintf
     libc.src.stdio.snprintf
+    libc.src.stdio.fprintf
+    libc.src.stdio.printf
 
     # sys/mman.h entrypoints
     libc.src.sys.mman.madvise
@@ -200,6 +202,9 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.unistd.unlink
     libc.src.unistd.unlinkat
     libc.src.unistd.write
+
+    # wchar.h entrypoints
+    libc.src.wchar.wctob
 )
 
 set(TARGET_LIBM_ENTRYPOINTS
@@ -275,6 +280,7 @@ set(TARGET_LIBM_ENTRYPOINTS
     libc.src.math.llround
     libc.src.math.llroundf
     libc.src.math.llroundl
+    libc.src.math.log10
     libc.src.math.log10f
     libc.src.math.log1pf
     libc.src.math.log2f
@@ -406,7 +412,6 @@ if(LLVM_LIBC_FULL_BUILD)
     libc.src.stdio.funlockfile
     libc.src.stdio.fwrite
     libc.src.stdio.fwrite_unlocked
-    libc.src.stdio.fprintf
     libc.src.stdio.getc
     libc.src.stdio.getc_unlocked
     libc.src.stdio.getchar

diff  --git a/libc/config/linux/riscv64/headers.txt b/libc/config/linux/riscv64/headers.txt
index 1351d91145855..2d8ed5001c143 100644
--- a/libc/config/linux/riscv64/headers.txt
+++ b/libc/config/linux/riscv64/headers.txt
@@ -19,6 +19,7 @@ set(TARGET_PUBLIC_HEADERS
     libc.include.threads
     libc.include.time
     libc.include.unistd
+    libc.include.wchar
 
     libc.include.arpa_inet
 


        


More information about the libc-commits mailing list