This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1 status
- To: Andi Kleen <ak at muc dot de>
- Subject: Re: egcs-1.1 status
- From: Horst von Brand <vonbrand at inf dot utfsm dot cl>
- Date: Fri, 21 Aug 1998 14:10:21 -0400
- cc: law at cygnus dot com, manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de, egcs at cygnus dot com
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