This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with sparc32 build


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


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