<div dir="ltr">Hi all,<br><br>Working with llvm 2.8 installed on Mac OS, when using the llvm-gcc frontend and the C backend I see it converting regular (non-checking) memcpy and memset calls to __memset_chk and __memcpy_chk already at the IR stage. Then in the CBE output these are retained as gcc builtin functions.<br>
In a similar manner, llvm.objectsize.* calls are replaced with __builtin_object_size calls, another gcc builtin function. <br><br>This way the resulting C code is usable as-is only on gcc-compatible compilers. <br><br>Is there a way, either by passing some flags to the llvm-gcc frontend, or by specifying some other flag to llc, to prevent this from happening?<br>
<br><br>Your help is as always much appreciated,<br><br>Harel Cain<br><br clear="all"><br>
</div>