Re: Support -mcpu=native on Solaris/SPARC

2011-08-08 Thread Rainer Orth
Eric Botcazou writes: >> 2011-07-27 Rainer Orth >> >> gcc: >> * config/sparc/driver-sparc.c: New file. >> * config/sparc/x-sparc: New file. >> * config.host: Use driver-sparc.o, sparc/x-sparc on >> sparc*-*-solaris2*. >> * config/sparc/sparc.opt (native): New valu

Re: Support -mcpu=native on Solaris/SPARC

2011-08-07 Thread Eric Botcazou
> 2011-07-27 Rainer Orth > > gcc: > * config/sparc/driver-sparc.c: New file. > * config/sparc/x-sparc: New file. > * config.host: Use driver-sparc.o, sparc/x-sparc on > sparc*-*-solaris2*. > * config/sparc/sparc.opt (native): New value for enum > process

Re: Support -mcpu=native on Solaris/SPARC

2011-08-01 Thread Paolo Bonzini
On 08/01/2011 03:51 PM, Rainer Orth wrote: Here's an updated version of the patch, containing two changes: * Solaris 8 doesn't support KSTAT_DATA_STRING. * I've updated the list of known cpu types, based on the /platform/sun4?/kernel/cpu{, /sparcv9} entries found in Solaris 8, 9, 10 and 1

Re: Support -mcpu=native on Solaris/SPARC

2011-08-01 Thread Rainer Orth
Rainer Orth writes: > This is a first cut at supporting -mcpu=native/-mtune=native on > Solaris/SPARC. Unlike it's Tru64 UNIX/Alpha and IRIX/MIPS (to be > submitted soon) counterparts, it's a bit more involved: > > * There's no support for -mcpu=native in the SPARC port yet. > > * Access to the

Support -mcpu=native on Solaris/SPARC

2011-07-27 Thread Rainer Orth
This is a first cut at supporting -mcpu=native/-mtune=native on Solaris/SPARC. Unlike it's Tru64 UNIX/Alpha and IRIX/MIPS (to be submitted soon) counterparts, it's a bit more involved: * There's no support for -mcpu=native in the SPARC port yet. * Access to the %ver register is privileged, so we