[cfe-dev] Patch for __builtin_bzero
Nico Weber
nicolasweber at gmx.de
Sat Jul 19 00:04:22 PDT 2008
Hi,
with the attached patch, vim7 can be built with `make CC=ccc`. Linking
takes about 3 minutes (with a debug build of llvm), and vim's build
process runs the linker several times (at least 3 times), so total
linking time is about 3 minutes.
The patch adds support for __builtin_bzero. OS X' headers use that in
FD_SET. __builtin_bzero() simply calls the library's bzero() in this
patch. Would it be better to use the llvm.memset intrinsic instead? I
believe Windows does not have bzero in its c library.
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzero.patch
Type: application/octet-stream
Size: 489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080719/b7e99191/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtin-bzero.c
Type: application/octet-stream
Size: 248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080719/b7e99191/attachment-0001.obj>
More information about the cfe-dev
mailing list