<div class="gmail_quote">On Tue, May 29, 2012 at 9:52 AM, Dmitry Vyukov <span dir="ltr"><<a href="mailto:dvyukov@google.com" target="_blank">dvyukov@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote"><div class="im">On Tue, May 29, 2012 at 8:46 PM, Anton Korobeynikov <span dir="ltr"><<a href="mailto:anton@korobeynikov.info" target="_blank">anton@korobeynikov.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>> How do I disable that feature? I've tried -fno-builtin and/or -ffreestanding<br>
> with no success.<br>
</div>clang (as well as gcc) requires that freestanding environment provides<br>
memcpy, memmove, memset and memcmp.<br>
<br>
PS: Consider emailing cfedev, not llvmdev.<br></blockquote><div><br></div></div><div>Hi,</div><div><br></div><div>Thanks. I've emailed cfe-dev.</div><div>We absolutely need clang/llvm to not insert the calls into our code.</div>
</div></blockquote><div><br></div><div>This really isn't possible.</div><div><br></div><div>The C++ standard essentially requires the compiler to insert calls to memcpy for certain code patterns.</div><div><br></div><div>
What do you really need here? Clearly you have some way of handling when the user writes memcpy; what is different about Clang or LLVM inserting memcpy? </div></div>