[libc-commits] [libc] 25ef564 - [libc] remove unsupported GCC attribute
Guillaume Chatelet via libc-commits
libc-commits at lists.llvm.org
Tue Apr 11 05:21:35 PDT 2023
Author: Guillaume Chatelet
Date: 2023-04-11T12:21:23Z
New Revision: 25ef564bad76bb5f3de0ac0d741006b5692aea88
URL: https://github.com/llvm/llvm-project/commit/25ef564bad76bb5f3de0ac0d741006b5692aea88
DIFF: https://github.com/llvm/llvm-project/commit/25ef564bad76bb5f3de0ac0d741006b5692aea88.diff
LOG: [libc] remove unsupported GCC attribute
This is ok as we build the libraries with `-ffreestanding` which implies `-fno-builtin` on all functions.
Added:
Modified:
libc/test/src/string/memory_utils/memory_check_utils.h
Removed:
################################################################################
diff --git a/libc/test/src/string/memory_utils/memory_check_utils.h b/libc/test/src/string/memory_utils/memory_check_utils.h
index 930161a95d92..46c362d6b370 100644
--- a/libc/test/src/string/memory_utils/memory_check_utils.h
+++ b/libc/test/src/string/memory_utils/memory_check_utils.h
@@ -75,8 +75,8 @@ static inline void Randomize(cpp::span<char> buffer) {
}
// Copy one span to another.
-__attribute__((no_builtin)) static inline void
-ReferenceCopy(cpp::span<char> dst, const cpp::span<char> src) {
+static inline void ReferenceCopy(cpp::span<char> dst,
+ const cpp::span<char> src) {
assert(dst.size() == src.size());
for (size_t i = 0; i < dst.size(); ++i)
dst[i] = src[i];
More information about the libc-commits
mailing list