aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-04-11 12:21:11 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-04-11 12:21:23 +0000
commit25ef564bad76bb5f3de0ac0d741006b5692aea88 (patch)
tree3d988715143e5c0a51b001e3040d11e923e6241f /libc
parentcbe4499d6b88b1bd6e4c30096cd33d4218fc0a84 (diff)
downloadllvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.zip
llvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.tar.gz
llvm-25ef564bad76bb5f3de0ac0d741006b5692aea88.tar.bz2
[libc] remove unsupported GCC attribute
This is ok as we build the libraries with `-ffreestanding` which implies `-fno-builtin` on all functions.
Diffstat (limited to 'libc')
-rw-r--r--libc/test/src/string/memory_utils/memory_check_utils.h4
1 files changed, 2 insertions, 2 deletions
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 930161a..46c362d 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];