[Sorry, I get this mailing list as an digest, and although it says it's daily, it has been very irregularly delivered...]
Are you really sure you want to know? Historically, there are three different meanings for -xarch=v9c in the Sun compilers. A. Back in about 1995 when we were creating 64-bit Solaris, The -xarch=v9c option was used for some kind of intermediate code generation. It's been too long now, and I don't remember exactly what it did... It looks like those references in usr/src/Makefile.master must date back to those days. I cannot find any code that implemented "-Wc,-Qiselect-v9abiwarn=1", but it is possible that it was in some intermediate compiler version for a while around that same time period. B. In the early 2000's, Sun was developing a processor code named millennium, and that processor included some new instructions beyond what UltraSPARC III included. Since we had used -xarch={v8plub,v9b} for the VIS2 extensions on UltraSPARC III, it seemed likely that we would use v8pluc/v9c for millennium. That processor was cancelled, so those compiler options were unused, though there was some compiler code associated with those options. C. In about 2006, Sun and Fujitsu released the SPARC64 VI based SPARC Enterprise Servers (Mx000 series), and those SPARC64 VI chips included some new instructions, like floating-point, fused multiply-add. So, we ripped out the millennium code, and added the SPARC64 VI code, and tentatively called it -xarch={v8plusc,v9c}. But in the middle of that release, there was a decision to change our -xarch option spellings and use the -m32/-m64 (for 32-bit/64-bit code) plus -xarch={sparc,sparcvis,sparcvis2,sparcfmaf} spellings. This compiler became Sun Studio 12. Only the assembler retains the -xarch={v8plusc,v9c} spelling, because we needed to maintain compatibility for the Solaris assembler code developed before the option spelling change. This (C) is what the CR 6520539 is about. This is also probably what the document at: http://developers.sun.com/sunstudio/support/Ccompare.html is trying to say, but got it mangled a bit. Hope that was not too long, Peter. On Thu, 2008-11-13 at 05:59, tools-compilers-request at opensolaris.org wrote: ... > Message: 7 > Date: Thu, 13 Nov 2008 03:38:44 +0100 > From: Roland Mainz <roland.mainz at nrubsig.org> > Subject: [tools-compilers] What is "-xarch=v9c" ? > To: OpenSolaris Compiler List <tools-compilers at opensolaris.org>, > on-discuss at opensolaris.org > Message-ID: <491B9334.F2FA8844 at nrubsig.org> > Content-Type: text/plain; charset=us-ascii > > > Hi! > > ---- > > usr/src/Makefile.master references the value "v9c" as option for the Sun > Studio compiler... > > -- snip -- > 286 # set this to the secret flag "-Wc,-Qiselect-v9abiwarn=1" to get > warnings > 287 # from the compiler about places the -xarch=v9 may differ from > -xarch=v9c. > 288 V9ABIWARN= > -- snip -- > > ... but the manpage cc(1) does not reference it. Is this a documentation > bug in cc(1) or something else ? > > ---- > > Bye, > Roland > > -- > __ . . __ > (o.\ \/ /.o) roland.mainz at nrubsig.org > \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer > /O /==\ O\ TEL +49 641 3992797 > (;O/ \/ \O;) > > > ------------------------------ ... > ------------------------------ > > Message: 9 > Date: Thu, 13 Nov 2008 08:44:14 -0500 > From: James Carlson <james.d.carlson at sun.com> > Subject: Re: [tools-compilers] What is "-xarch=v9c" ? > To: Roland Mainz <roland.mainz at nrubsig.org> > Cc: on-discuss at opensolaris.org, OpenSolaris Compiler List > <tools-compilers at opensolaris.org> > Message-ID: <18716.12078.603148.13082 at gargle.gargle.HOWL> > Content-Type: text/plain; charset=us-ascii > > Roland Mainz writes: > > usr/src/Makefile.master references the value "v9c" as option for the Sun > > Studio compiler... > > A quick google search leads to discussion of SPARC64 VI CPUs, > including a reference on this page: > > http://developers.sun.com/sunstudio/support/Ccompare.html > > > ... but the manpage cc(1) does not reference it. Is this a documentation > > bug in cc(1) or something else ? > > The history here seems murky. CR 6520539 seems to describe the > option, but there's nothing I can see in the documentation, and the > related CRs for implementing it don't mention it at all. > > -- > James Carlson, Solaris Networking <james.d.carlson at sun.com> > Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084 > MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677 > > > ------------------------------ > > _______________________________________________ > tools-compilers mailing list > tools-compilers at opensolaris.org > > End of tools-compilers Digest, Vol 14, Issue 3 > **********************************************