Joxean Koret (@matalaz)<p>Does anybody know how to prevent <a href="https://mastodon.social/tags/clang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>clang</span></a> from issuing calls to libc functions like `memset` in this case when compiling C programs? I have tried I don't know how many command line arguments to try to disable it but none worked at all. </p><p>Here you have an example program in <a href="https://mastodon.social/tags/godbolt" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>godbolt</span></a>: <a href="https://godbolt.org/z/jheYoPWzj" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">godbolt.org/z/jheYoPWzj</span><span class="invisible"></span></a></p><p>These are the command line arguments I've tried to disable it:</p><p>-ffreestanding -disable-simplify-libcalls -fno-builtin -nostdinc -nostdlib -fno-builtin-memset -nostdlib++ -nostdinc++</p><p>Any idea?</p>