aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386/driver-i386.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2006-09-22 23:50:51 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2006-09-22 23:50:51 +0000
commit682cd442411eee7c5dd64db9a85e833386bfa111 (patch)
treecbd39ac1e4b0c1363025fe74604d784c1f1514de /gcc/config/i386/driver-i386.c
parent9281e73dd6d9fd79c8542a62374ac530f3e97c78 (diff)
downloadgcc-682cd442411eee7c5dd64db9a85e833386bfa111.zip
gcc-682cd442411eee7c5dd64db9a85e833386bfa111.tar.gz
gcc-682cd442411eee7c5dd64db9a85e833386bfa111.tar.bz2
driver-i386.c: Always define host_detect_local_cpu.
* config/i386/driver-i386.c: Always define host_detect_local_cpu. * config/i386/i386.h: Define EXTRA_SPEC_FUNCTIONS on any i386 or x86_64 host. Define HAVE_LOCAL_CPU_DETECT. (CC1_CPU_SPEC): Make conditional on HAVE_LOCAL_CPU_DETECT rather than replicating condition above. * config.host (i[34567]86-*-*): Always use driver-i386.o. From-SVN: r117159
Diffstat (limited to 'gcc/config/i386/driver-i386.c')
-rw-r--r--gcc/config/i386/driver-i386.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c
index f13abd1..979a6a5 100644
--- a/gcc/config/i386/driver-i386.c
+++ b/gcc/config/i386/driver-i386.c
@@ -22,11 +22,6 @@ Boston, MA 02110-1301, USA. */
#include "system.h"
#include <stdlib.h>
-#ifndef CROSS_COMPILE
-/* This file shouldn't even be included in a cross compiler, but
- let's be sure. */
-extern const char *host_detect_local_cpu (int argc, const char **argv);
-
#ifdef GCC_VERSION
#define cpuid(num,a,b,c,d) \
asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \
@@ -170,5 +165,4 @@ const char *host_detect_local_cpu (int argc, const char **argv)
{
return concat ("-m", argv[0], "=i386", NULL);
}
-#endif
-#endif
+#endif /* GCC_VERSION */