This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Undefined references to 'memcpy' when compiling Linux Kernel


> Instead, the code resulting for these functions is a 'call memcpy', a
> function that doesn't exist in the kernel. A -fbuiltin-functions or -O3 does
> not seem to solve the problem.

gcc assumes it is linked with libgcc. That isnt unreasonable but it breaks
on the kernel stuff. Turn the problem functions into using explicit memcpy
calls then mail me a diff. This is kernel over cleverness  not gcc.


>         /* Install the file handle in the dentry */
>         *((struct nfs_fh *) dentry->d_fsdata) = *fhandle;

Make that a memcpy

Alan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]