[llvm-bugs] [Bug 52067] New: Failure to compile __builtin_bcopy
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 4 11:09:49 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52067
Bug ID: 52067
Summary: Failure to compile __builtin_bcopy
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: gabravier at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
#include <stddef.h>
void f(const void *s, void *d, size_t n)
{
__builtin_bcopy((void *)s, d, n);
}
Trying to compile this with Clang results in this error:
<source>:5:5: error: cannot compile this builtin function yet
__builtin_bcopy((void *)s, d, n);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I would assume implementing this is as simple as having it do
`__builtin_memmove(d, s, n)`, so it seems odd that this isn't implemented
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211004/f24313d4/attachment.html>
More information about the llvm-bugs
mailing list