diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-09 15:40:12 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-09 15:40:12 +0000 |
commit | 4009b53fc59b4defcbfd3aae56fa616b749d3379 (patch) | |
tree | edfdcf7946b106c46521aab6bfcb76f775a8a190 /gcc/config.host | |
parent | b3acd74f838c7d20fc674546fd82c7e9dba9c585 (diff) | |
download | ppe42-gcc-4009b53fc59b4defcbfd3aae56fa616b749d3379.tar.gz ppe42-gcc-4009b53fc59b4defcbfd3aae56fa616b749d3379.zip |
* config.host (<i[34567]86-*-*, x86_64-*-*>): Set
host_extra_gcc_objs and host_xmake_file.
(<*-*-linux*>): Don't overwrite host_xmake_file.
* gcc.c (static_spec_functions): Add EXTRA_SPEC_FUNCTIONS.
* config/i386/i386.h (EXTRA_SPEC_FUNCTIONS): Define.
(host_detect_local_cpu): Declare.
(CC1_CPU_SPEC): Add -march=native and -mtune=native cases.
* config/i386/i386.c (override_options): Handle -mtune=native
as -mtune=generic.
* config/i386/x-i386: New file.
* config/i386/driver-i386.c: New file.
* doc/invoke.texi (<i386 and x86-64 Options>): Describe
cpu-type "native".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.host')
-rw-r--r-- | gcc/config.host | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/config.host b/gcc/config.host index f9b39e682f2..b0925a2cab3 100644 --- a/gcc/config.host +++ b/gcc/config.host @@ -94,6 +94,17 @@ case ${target} in ;; esac +case ${host} in + i[34567]86-*-* \ + | x86_64-*-* ) + # include the support for -march=native only when not cross compiling + if test x${host} = x${target} ; then + host_extra_gcc_objs="driver-i386.o" + host_xmake_file="${host_xmake_file} i386/x-i386" + fi + ;; +esac + # Machine-specific settings. case ${host} in alpha*-dec-*vms*) @@ -186,7 +197,7 @@ case ${host} in ;; *-*-linux*) out_host_hook_obj=host-linux.o - host_xmake_file=x-linux + host_xmake_file="${host_xmake_file} x-linux" ;; ia64-*-hpux*) use_long_long_for_widest_fast_int=yes |