This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: automatic reference to memset?
well perhaps require for gcc extensions such as the
char devpts[15]="/dev/pts";
that I did. But for regular C, how can it require it (it couldn't link
the linux kernel then as memset is not provided as a symbol, just as an
inline). On the debian list it seems that gcc-2.95 doesn't have memset
as a builtin while red hat's 2.96 and 3.2 in general do. Therefore
there's no symbol that needs to be resolved for those, while in 2.95
there is.
On Fri, 2002-09-27 at 13:46, Richard Henderson wrote:
> On Fri, Sep 27, 2002 at 02:54:50AM -0400, Shaya Potter wrote:
> > with the gcc included in debian ("2.95.4" a "debian prerelease") causes
> > gcc to cause a reference to memset to be automatically included.
>
> Yes. GCC requires memset, memcpy, memcmp, and memmove. Always.
> This has been discussed at length on these lists.
>
>
> r~