[cfe-dev] FreeBSD kernel - linking

Mike Stump mrs at apple.com
Thu Feb 12 11:23:16 PST 2009


On Feb 12, 2009, at 10:53 AM, Chris Lattner wrote:
> that won't help, clang generates these for structure copies.

There are only a couple of options.  One, clang is documented to  
require memmove, and we require the kernel to have one.  Two, clang is  
documented as not requiring it, and we generate inline code, or calls  
to a runtime library that is linked against.  Three, we generate calls  
to a clang internal routine, and emit it linkonce (comdat) in every  
translation unit that references it.  Now, the canonical solution _is_  
-fno-builtin-memmove, if implemented, it would do something  
indistinguishable from the last.  Why do you say it won't help?



More information about the cfe-dev mailing list