On Mon, Nov 17, 2008 at 02:43:15PM -0800, Alan Coopersmith wrote:
> > -m64 -xarch=generic (which is equivalent to -m64, as -xarch=generic is 
> > default)
> > does just that.
> 
> I know it's the default now, I was looking for a option to future-proof our
> Makefiles against future compiler upgrades, when the compiler team next 
> decides
> to update the default ISA (like the bump in Studio 11 or 12 from -xarch=v8 to
> -xarch=v8plus as default), since when building Solaris we still need to 
> support
> platforms with CPU's like the Fujistu SPARC64 without VIS and other 
> extensions.
> 
> >From other documentation, it sounds like -xarch=generic is only to override
> other -xarch settings to restore the default, and there is no option to allow
> specifying a lower ISA revision than the default.

No, thats not true.
We can choose to make -xarch=generic to be higher than the lowest supported ISA
In this case you can always specify a lower ISA manually.

Say, -xarch=386 is not a default anymore, but you can use it.
For 32-bit sparc the lowest I believe is -xarch=v7 and default/generic is 
-xarch=v8plus.
You still can use -xarch=v7 manually (and we still keep v7-optimized run-time 
libs etc).
For 64-bit sparc the lowest and the default should be -xarch=sparc. 
And that is the ISA you get with -xarch=v9.

regards,
  Fedor.

> 
> -- 
>       -Alan Coopersmith-           alan.coopersmith at sun.com
>        Sun Microsystems, Inc. - X Window System Engineering
> 
> _______________________________________________
> tools-compilers mailing list
> tools-compilers at opensolaris.org

Reply via email to