egcs-1.1 status
Horst von Brand
vonbrand@inf.utfsm.cl
Fri Aug 21 12:51:00 GMT 1998
Andi Kleen <ak@muc.de> said:
[...]
> AFAIK most of the include/asm/string-i386.h are still miscompiled, but
> few people see that problem because only some specific driver combinations
> use them in critical paths.
What exactly are the problems?
> I think the best fix is to replace strlen/strcpy/strcmp with the __builtin_*
> variants (BTW, g++ does not seem to know about __builtin_str* - is this a bug
> ?), and replace all others except memset/memcpy/memmove with C variants.
There are entirely too much str* implementations floating around, IMHO. I
did some fixing in the glibc routines, and so I know that even just there
different assembler tricks are used for similar jobs for the same processor
type.
OTOH, pushing the job of implementing str* (or whatever else) into the
compiler gives a more rigid (and probably fragile) solution.
--
Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
More information about the Gcc
mailing list