Alan Coopersmith wrote:
>
>> I don't see it using "-xregs=no%appl" any more. 
>
> Because you're building on i386.   The ON Makefiles, like X, only pass
> -xregs=no%appl on SPARC.    ON's usr/src/Makefile.master says:
>
> sparc_XREGSFLAG         = -xregs=no%appl
> sparcv9_XREGSFLAG       = -xregs=no%appl
> i386_XREGSFLAG          =
> amd64_XREGSFLAG         =
>
Oh, that's embarrassing.  :-(

Here's the SPARC command line for malloc.c, although it is a debug
only build.  I need to run an optimized build.


/ws/onnv-tools/SUNWspro/SS11/bin/cc -xO3 -xarch=v8 
-Wc,-Qassembler-ounrefsym=0
-xregs=no%appl -K pic -xspace -W0,-Lt -Xa -xildoff -errtags=yes 
-errwarn=%all
-erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED
-xc99=%all -Wd,-xsafe=unboundsym -W2,-xwrap_int -W0,-xglobalstatic -v 
-xinline= -g
-Wc,-Qiselect-T1 -xc99=%all -W0,-noglobal -xdebugformat=stabs 
-D_REENTRANT -Dsparc
-I./inc -I../inc -DTEXT_DOMAIN="SUNW_OST_OSLIB" -D_TS_ERRNO
-I/export/build0/rugrat/onnv-clone/proto/root_sparc/usr/include -DPIC 
-D_REENTRANT
-c -o pics/malloc.o ../port/gen/malloc.c

$ dis sparc/pics/malloc.o | grep %g2
$





Reply via email to