[libc-commits] [libc] [libc] move bcmp, bzero, bcopy, index, rindex, strcasecmp, strncasecmp to strings.h (PR #118899)

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Mon Dec 9 12:17:59 PST 2024


================
@@ -76,6 +69,15 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.string.strtok_r
     libc.src.string.strxfrm
 
+    # strings.h entrypoints
+    libc.src.strings.bcmp
+    libc.src.strings.bcopy
+    libc.src.strings.bzero
+    libc.src.strings.index
+    libc.src.strings.rindex
+    libc.src.strings.strcasecmp
+    libc.src.strings.strncasecmp
----------------
gchatelet wrote:

Clang needs to know that these functions [are present](https://github.com/llvm/llvm-project/blob/0f7b3a9407d20e6a4d33ea623e05cf2a3f65eabd/llvm/lib/Analysis/TargetLibraryInfo.cpp#L111-L119). And they are when using glibc or musl libc in the target triple.

https://github.com/llvm/llvm-project/pull/118899


More information about the libc-commits mailing list