current CVS version 'miscompiles' Linux kernel modules [1/2]

Philipp Thomas pthomas@suse.de
Fri Feb 25 04:01:00 GMT 2000


If I compile the modules for 2.3.47, I get unresolved external references to
memcpy in some of them. This shouldn't happen, as the files in question do
include linux/string.h and thus get inline versions of __memcpy and suitable
defines. I've singled out one of the files. If I compile this with egcs
1.1.2 or gcc 2.95.2 everything is OK, compiled with current CVS
'nm --undefined-only' shows memcpy as external reference.

The preprocessed versions done by egcs 1.1.2 is attached here, the one
preprocessed by 2.96 follows in the next messages.

Could someone please have a look as to what the reason might be? I can only
guess that it's because of the string ops optimizations added lately.

Philipp

-- 
Philipp Thomas <pthomas@suse.de>
SuSE GmbH, Deutschherrenstrasse 15-29, 90429 Nuremberg

The only difference between a bug and a feature is you can turn a feature off.  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: isdn_common.egcs.i.bz2
Type: application/x-bzip2
Size: 67018 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000225/a5e35036/attachment.bz2>


More information about the Gcc-bugs mailing list