problems with sparc32 build
Jakub Jelinek
jakub@redhat.com
Thu Jan 30 09:45:00 GMT 2003
On Wed, Jan 29, 2003 at 11:05:09PM +0100, Thorsten Kukuk wrote:
> On Wed, Jan 29, Jakub Jelinek wrote:
>
> > On Wed, Jan 29, 2003 at 08:56:35PM +0100, Andreas Jaeger wrote:
> > >
> > > Building glibc for sparc fails with current CVS with:
> > >
> > > In file included from ../linuxthreads/sysdeps/sparc/tls.h:25,
> > > from ../include/tls.h:3,
> > > from ../linuxthreads/internals.h:28,
> > > from ../linuxthreads/sysdeps/pthread/bits/libc-lock.h:27,
> > > from cxa_atexit.c:19:
> > > ../linuxthreads/sysdeps/sparc/sparc32/pt-machine.h:59: warning: call-clobbered register used for global register variable
> > >
> > > What's going on here? Is my GCC 3.3 CVS version to old? I cannot
> > > find tls patches for sparc in GCC mainline either...
> >
> > By any change, aren't you using -fcall-used-g7?
>
> compiler options are
> gcc -m32 -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes \
> -Wwrite-strings -fcall-used-g7 -g -mtune=ultrasparc
>
> so, -fcall-used-g7 is used (same compiler options as we used the
> last years for compiling glibc on sparc32).
That obviously needs to be changed to -fcall-used-g6 when the roles of the
2 registers swapped.
Jakub
More information about the Libc-hacker
mailing list