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: egcs-1.1 status


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


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