Skip to content

Commit ee91799

Browse files
[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
1 parent 5b8156b commit ee91799

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libc/config/linux/riscv64/entrypoints.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ set(TARGET_LIBC_ENTRYPOINTS
118118
libc.src.stdio.remove
119119
libc.src.stdio.sprintf
120120
libc.src.stdio.snprintf
121+
libc.src.stdio.fprintf
122+
libc.src.stdio.printf
121123

122124
# sys/mman.h entrypoints
123125
libc.src.sys.mman.madvise
@@ -200,6 +202,9 @@ set(TARGET_LIBC_ENTRYPOINTS
200202
libc.src.unistd.unlink
201203
libc.src.unistd.unlinkat
202204
libc.src.unistd.write
205+
206+
# wchar.h entrypoints
207+
libc.src.wchar.wctob
203208
)
204209

205210
set(TARGET_LIBM_ENTRYPOINTS
@@ -275,6 +280,7 @@ set(TARGET_LIBM_ENTRYPOINTS
275280
libc.src.math.llround
276281
libc.src.math.llroundf
277282
libc.src.math.llroundl
283+
libc.src.math.log10
278284
libc.src.math.log10f
279285
libc.src.math.log1pf
280286
libc.src.math.log2f
@@ -406,7 +412,6 @@ if(LLVM_LIBC_FULL_BUILD)
406412
libc.src.stdio.funlockfile
407413
libc.src.stdio.fwrite
408414
libc.src.stdio.fwrite_unlocked
409-
libc.src.stdio.fprintf
410415
libc.src.stdio.getc
411416
libc.src.stdio.getc_unlocked
412417
libc.src.stdio.getchar

libc/config/linux/riscv64/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set(TARGET_PUBLIC_HEADERS
1919
libc.include.threads
2020
libc.include.time
2121
libc.include.unistd
22+
libc.include.wchar
2223

2324
libc.include.arpa_inet
2425

0 commit comments

Comments
 (0)