Hi, I'm compiling the opensolaris kernel and my aim is to disable shadow compilation and to make GCC become the primary compiler. I have used some tricks referenced at this page
http://opensolaris.org/os/community/on/flag-days/pages/2006033001/, which basically states that I should assign CW_NO_SHADOW to 1 and __GNUC to nothing. Doing this, I have problems with verifying that only GCC is used when I run "dmake" in the uts directory. Running dmake for a second (just to see the first files being compiled) results in the following output: /export/mladen/usr/src/tools/proto/opt/onbld/bin/sparc/cw -_cc -w -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -Dsun4v -D_MACHDEP -DSFMMU -DC2_AUDIT -I../../sun4 -I../../sun4v -I../../sfmmu -I../../sparc/v9 -I../../sparc -I../../sun -Y I,../../common \ -o ./debug64/genconst ../../sun4/ml/genconst.c + /opt/SUNWspro/bin/cc -w -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -Dsun4v -D_MACHDEP -DSFMMU -DC2_AUDIT -I../../sun4 -I../../sun4v -I../../sfmmu -I../../sparc/v9 -I../../sparc -I../../sun -Y I,../../common -o ./debug64/genconst ../../sun4/ml/genconst.c /export/mladen/usr/src/tools/proto/opt/onbld/bin/genoffsets -s /export/mladen/usr/src/tools/proto/opt/onbld/bin/sparc/ctfstabs -r /export/mladen/usr/src/tools/proto/opt/onbld/bin/sparc/ctfconvert /export/mladen/usr/src/tools/proto/opt/onbld/bin/sparc/cw -_cc -_noecho -W0,-xdbggen=no%usedonly -_gcc=-fno-dwarf2-indirect-strings -xchip=ultra -Wc,-xcode=abs32 -Wc,-Qiselect-regsym=0 -xarch=v9a -xO3 ../../sparc/ml/sparc.il -D_ASM_INLINES -Xa -xspace -W0,-Lt -errtags=yes -errwarn=%all -erroff=E_ASM_DISABLES_OPTIMIZATION -g -Wc,-Qiselect-T1 -xc99=%all -W0,-noglobal -_gcc=-fno-dwarf2-indirect-strings -xdebugformat=stabs -xc99=%all -Wd,-xsafe=unboundsym -Wc,-Qassembler-ounrefsym=0 -W2,-xwrap_int -W0,-xglobalstatic -xregs=no%float -D_KERNEL -D_SYSCALL32 -D_SYSCALL32_IMPL -D_ELF64 -D_DDI_STRICT -Dsun -D__sun -D__SVR4 -Dsun4v -D_MACHDEP -DSFMMU -DQCN_POLLING -DDO_CORELEVEL_LOADBAL -DN2_ERRATUM_49 -DN2_IDLE_WORKAROUND -DN2_ERRATUM_112 -DN2_ERRATUM_134 -DDEBUG -DC2_AUDIT -I../../sun4 -I../../sun4v -I../../sfmmu -I../../sparc/v9 -I../../sparc -I../../sun -Y I,../../common -DGLREG <../../sun4/ml/offsets.in >debug64/assym.h There is an indication that the Sun Studio compiler is used because the "cw -_cc" switch is used. On the other hand, the "-_gcc" switch is also used to set some flags, which makes it confusing. So, is there a safe way to determine which compiler is actually doing the compilation? Regards, Mladen -- This message posted from opensolaris.org
