Martin Bochnig wrote: > J?rgen Keil wrote: > >> Aren't system libraries required not to touch application global >> registers %g2 - %g4? > >> >> _XInternAtom+0x2bc: c4 0d bf ff ldub [%l6 - 0x1], %g2 >> _XInternAtom+0x2c0: 16 bf ff f9 bge -0x1c >> <_XInternAtom+0x2a4> >> _XInternAtom+0x2c4: c4 2d ff ff stb %g2, [%l7 - 0x1] >> >> >> This breaks applications like qemu, which is trying to use global >> registers %g2 - %g4; >> but some of these global register variables get thrashed by calls >> into the X11 >> libraries. >> >> Shouldn't the Solaris X11 shared libraries be compiled with >> -xregs=no%appl ? >> >> > > Aren't they already, at least in terms of Xorg 7.2 ?? > > --->> > # grep -n "xregs=no%appl" > /mnt/6/Xorg720_alanc/X-src-20070227/XW_NV/open-src/common/Makefile.inc__ORIG > > 76:DEFAULT_sun4_ARCH_LIB_FLAGS = -xregs=no%appl > # > >> See also Bug ID 4166599 >> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4166599 >
Final self-correction for today: Okay Mr. Keil, you are of course reporting a problem that occurred on a Xsun_sparc_Solaris host. Only Alan Coopersmith (or someone else from the X11 group) can provide an answer. But I would actually wonder, why AlanC would have removed the "-xregs=no%appl" flag, taking into account that he himself dealt with above bug report back then, plus does also set this flag in his fresh Xorg_7.2.0 tree. Is it potentially a bug in the toolchain?
