diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-10 10:03:07 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-07-10 10:40:10 -0500 |
commit | b454e7aa7ceb35a0070406ebd7ffdf1ed85f5ef8 (patch) | |
tree | afc52b06a4ecbf51582c06b970f261e843dd3397 /libc | |
parent | 5a0b91fc28212f105c9b49a62444f7b92a54b1ed (diff) | |
download | llvm-b454e7aa7ceb35a0070406ebd7ffdf1ed85f5ef8.zip llvm-b454e7aa7ceb35a0070406ebd7ffdf1ed85f5ef8.tar.gz llvm-b454e7aa7ceb35a0070406ebd7ffdf1ed85f5ef8.tar.bz2 |
[libc] Remove GPU string functions incompatible with C++
These functions have definitions differing between C and C++. GNU
respects the C++ definitions while the LLVM libc does not. This causes
many bugs and the current hack creates other issues. Rather than hack
around this I'd rather temporarily disable these than regress with the
integration into other offloading languages. We lose test support for
them but we should be able to re-enable these once the `libc` headers
provide these correctly.
Reviewed By: JonChesterfield
Differential Revision: https://reviews.llvm.org/D154850
Diffstat (limited to 'libc')
-rw-r--r-- | libc/config/gpu/entrypoints.txt | 7 | ||||
-rw-r--r-- | libc/docs/gpu/support.rst | 10 |
2 files changed, 5 insertions, 12 deletions
diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt index 4316f8a..e475c80 100644 --- a/libc/config/gpu/entrypoints.txt +++ b/libc/config/gpu/entrypoints.txt @@ -21,7 +21,6 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.string.bcmp libc.src.string.bzero libc.src.string.memccpy - libc.src.string.memchr libc.src.string.memcmp libc.src.string.memcpy libc.src.string.memmem @@ -32,10 +31,7 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.string.stpcpy libc.src.string.stpncpy libc.src.string.strcasecmp - libc.src.string.strcasestr libc.src.string.strcat - libc.src.string.strchr - libc.src.string.strchrnul libc.src.string.strcmp libc.src.string.strcpy libc.src.string.strcspn @@ -47,10 +43,7 @@ set(TARGET_LIBC_ENTRYPOINTS libc.src.string.strncmp libc.src.string.strncpy libc.src.string.strnlen - libc.src.string.strpbrk - libc.src.string.strrchr libc.src.string.strspn - libc.src.string.strstr libc.src.string.strtok libc.src.string.strtok_r diff --git a/libc/docs/gpu/support.rst b/libc/docs/gpu/support.rst index bc94c83..1c7b253 100644 --- a/libc/docs/gpu/support.rst +++ b/libc/docs/gpu/support.rst @@ -47,7 +47,7 @@ Function Name Available RPC Required bcmp |check| bzero |check| memccpy |check| -memchr |check| +memchr memcmp |check| memcpy |check| memmove |check| @@ -57,7 +57,7 @@ memset |check| stpcpy |check| stpncpy |check| strcat |check| -strchr |check| +strchr strcmp |check| strcpy |check| strcspn |check| @@ -68,10 +68,10 @@ strncat |check| strncmp |check| strncpy |check| strnlen |check| -strpbrk |check| -strrchr |check| +strpbrk +strrchr strspn |check| -strstr |check| +strstr strtok |check| strtok_r |check| strdup |