This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: Optimized string operations for i586...
- To: gafton@redhat.com (Cristian Gafton)
- Subject: Re: Optimized string operations for i586...
- From: hjl@lucon.org (H.J. Lu)
- Date: Thu, 8 Apr 1999 16:17:31 -0700 (PDT)
- Cc: libc-hacker@cygnus.com
>
> On Thu, 8 Apr 1999, H.J. Lu wrote:
>
> > I have no problems with this. However, things may be different if
> > your gcc is configured with i386-pc-linux. If you want to optimize
> > glibc for i586, you should do
> >
> > export CFLAGS="-mcpu=i586 -march=i586 -D__USE_STRING_INLINES -fstrict-aliasing -g -O3"
> > ../glibc/configure --prefix=/usr --enable-add-ons=yes i586-pc-linux
> >
> > In that way, gcc will generate code for i586, no matter what target
> > gcc is optimized for by default, AND glibc will be configured for i586.
>
> This still breaks, just try to enable NIS lookups and everything will
> start to fall apart.
>
It seems to work for me. I have to ask how you did the NIS lookup test?
It is very tricky. I almost made a mistak. Please make sure you use
the shared libraries and dynamic linkers from the same build. Anyway,
send me your test. I will take a look.
--
H.J. Lu (hjl@gnu.org)