[LLVMdev] Linking strncpy
Chris Lattner
sabre at nondot.org
Thu Apr 15 00:12:02 PDT 2004
On Wed, 14 Apr 2004, Reid Spencer wrote:
>
> > You don't need to do this to get those annoying GCC warnings. They come
> > out whenever you compile a C program produced by the LLVM CBE that uses
> > certain GCC "builtins", like memcpy... :(
> >
> > -Chris
>
> That's weird. Perhaps GCC knows about its own builtin functions and the
> prototypes for them so that if you declare a similar function with the
> wrong prototype you get the warning?
But it only gives warnings for SOME builtins. :) Perhaps -fno-builtins
will silence the warning. *shrug*
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/
More information about the llvm-dev
mailing list