driver-native.c [__sgi__]: Include <invent.h>, <sys/sbd.h>.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 29 Jul 2011 18:19:29 +0000 (18:19 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 29 Jul 2011 18:19:29 +0000 (18:19 +0000)
commitcc822cc1f3f06814ccfa21d9d3ebe5405a6975c7
tree67f398530eb3bd9aedabefce738b4a513d5ddbab
parent2514265077f4260ae10377791317c6754b3292df
driver-native.c [__sgi__]: Include <invent.h>, <sys/sbd.h>.

* config/mips/driver-native.c [__sgi__]: Include <invent.h>,
<sys/sbd.h>.
(cpu_types): New array.
(cputype): New function.
(host_detect_local_cpu): Only define buf, f if !__sgi__.
Use scaninvent instead of /proc/cpuinfo if __sgi__.
* config.host: Also use driver-native.o, mips/x-native on
mips-sgi-irix*.
* config/mips/iris6.h [__mips__] (host_detect_local_cpu):
Declare.
(EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
(DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.

From-SVN: r176947
gcc/ChangeLog
gcc/config.host
gcc/config/mips/driver-native.c
gcc/config/mips/iris6.h