Skip to content

Commit

Permalink
[libc] remove unsupported GCC attribute
Browse files Browse the repository at this point in the history
This is ok as we build the libraries with `-ffreestanding` which implies `-fno-builtin` on all functions.
  • Loading branch information
gchatelet committed Apr 11, 2023
1 parent cbe4499 commit 25ef564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libc/test/src/string/memory_utils/memory_check_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 25ef564

Please sign in to comment.