Commit 83f4345f by Philipp Thomas Committed by Richard Henderson

configure.in: Set target_cpu_default2 for target_alias k6.

        * configure.in: Set target_cpu_default2 for target_alias k6.
        * i386.h (TARGET_SWITCHES): Remove no-<cpu> entries.
        (CC1_CPU_SPEC): Likewise.
        (CPP_CPU_DEFAULT_SPEC): Streamline definition.  Add K6 version.
        (CPP_K6_SPEC): New.
        (CPP_CPU_SPEC): Add K6 variant.
        (EXTRA_SPECS): Likewise.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r26341
parent f9ae47d6
Sat Apr 10 21:53:02 1999 Philipp Thomas (kthomas@gwdg.de)
Richard Henderson <rth@cygnus.com>
* configure.in: Set target_cpu_default2 for target_alias k6.
* i386.h (TARGET_SWITCHES): Remove no-<cpu> entries.
(CC1_CPU_SPEC): Likewise.
(CPP_CPU_DEFAULT_SPEC): Streamline definition. Add K6 version.
(CPP_K6_SPEC): New.
(CPP_CPU_SPEC): Add K6 variant.
(EXTRA_SPECS): Likewise.
Fri Apr 9 11:29:17 1999 Richard Henderson <rth@cygnus.com> Fri Apr 9 11:29:17 1999 Richard Henderson <rth@cygnus.com>
* flow.c (merge_blocks_nomove): Rewrite to properly handle two * flow.c (merge_blocks_nomove): Rewrite to properly handle two
......
...@@ -183,9 +183,7 @@ extern const int x86_double_with_add; ...@@ -183,9 +183,7 @@ extern const int x86_double_with_add;
{ "soft-float", -MASK_80387, "Do not use hardware fp" },\ { "soft-float", -MASK_80387, "Do not use hardware fp" },\
{ "no-soft-float", MASK_80387, "Use hardware fp" }, \ { "no-soft-float", MASK_80387, "Use hardware fp" }, \
{ "386", 0, "Optimize for i80386" }, \ { "386", 0, "Optimize for i80386" }, \
{ "no-386", 0, "" }, \
{ "486", 0, "Optimize for i80486" }, \ { "486", 0, "Optimize for i80486" }, \
{ "no-486", 0, "" }, \
{ "pentium", 0, "Optimize for Pentium" }, \ { "pentium", 0, "Optimize for Pentium" }, \
{ "pentiumpro", 0, "Optimize for Pentium Pro, Pentium II" },\ { "pentiumpro", 0, "Optimize for Pentium Pro, Pentium II" },\
{ "rtd", MASK_RTD, "Alternate calling convention" },\ { "rtd", MASK_RTD, "Alternate calling convention" },\
...@@ -295,34 +293,34 @@ extern int ix86_arch; ...@@ -295,34 +293,34 @@ extern int ix86_arch;
#define CC1_CPU_SPEC "\ #define CC1_CPU_SPEC "\
%{!mcpu*: \ %{!mcpu*: \
%{m386:-mcpu=i386 -march=i386} \ %{m386:-mcpu=i386 -march=i386} \
%{mno-486:-mcpu=i386 -march=i386} \
%{m486:-mcpu=i486 -march=i486} \ %{m486:-mcpu=i486 -march=i486} \
%{mno-386:-mcpu=i486 -march=i486} \
%{mno-pentium:-mcpu=i486 -march=i486} \
%{mpentium:-mcpu=pentium} \ %{mpentium:-mcpu=pentium} \
%{mno-pentiumpro:-mcpu=pentium} \
%{mpentiumpro:-mcpu=pentiumpro}}" %{mpentiumpro:-mcpu=pentiumpro}}"
#endif #endif
#define CPP_486_SPEC "%{!ansi:-Di486} -D__i486 -D__i486__" #define CPP_486_SPEC "%{!ansi:-Di486} -D__i486 -D__i486__"
#define CPP_586_SPEC "%{!ansi:-Di586 -Dpentium} \ #define CPP_586_SPEC "%{!ansi:-Di586 -Dpentium} \
-D__i586 -D__i586__ -D__pentium -D__pentium__" -D__i586 -D__i586__ -D__pentium -D__pentium__"
#define CPP_K6_SPEC "%{!ansi:-Di586 -Dk6} \
-D__i586 -D__i586__ -D__k6 -D__k6__"
#define CPP_686_SPEC "%{!ansi:-Di686 -Dpentiumpro} \ #define CPP_686_SPEC "%{!ansi:-Di686 -Dpentiumpro} \
-D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__" -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__"
#ifndef CPP_CPU_DEFAULT_SPEC #ifndef CPP_CPU_DEFAULT_SPEC
#if TARGET_CPU_DEFAULT == 1 #if TARGET_CPU_DEFAULT == 1
#define CPP_CPU_DEFAULT_SPEC "%(cpp_486)" #define CPP_CPU_DEFAULT_SPEC "%(cpp_486)"
#else #endif
#if TARGET_CPU_DEFAULT == 2 #if TARGET_CPU_DEFAULT == 2
#define CPP_CPU_DEFAULT_SPEC "%(cpp_586)" #define CPP_CPU_DEFAULT_SPEC "%(cpp_586)"
#else #endif
#if TARGET_CPU_DEFAULT == 3 #if TARGET_CPU_DEFAULT == 3
#define CPP_CPU_DEFAULT_SPEC "%(cpp_686)" #define CPP_CPU_DEFAULT_SPEC "%(cpp_686)"
#else
#define CPP_CPU_DEFAULT_SPEC ""
#endif #endif
#if TARGET_CPU_DEFAULT == 4
#define CPP_CPU_DEFAULT_SPEC "%(cpp_k6)"
#endif #endif
#ifndef CPP_CPU_DEFAULT_SPEC
#define CPP_CPU_DEFAULT_SPEC ""
#endif #endif
#endif /* CPP_CPU_DEFAULT_SPEC */ #endif /* CPP_CPU_DEFAULT_SPEC */
...@@ -333,6 +331,7 @@ extern int ix86_arch; ...@@ -333,6 +331,7 @@ extern int ix86_arch;
%{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} \ %{mcpu=i486:%(cpp_486)} %{m486:%(cpp_486)} \
%{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} \ %{mpentium:%(cpp_586)} %{mcpu=pentium:%(cpp_586)} \
%{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} \ %{mpentiumpro:%(cpp_686)} %{mcpu=pentiumpro:%(cpp_686)} \
%{mcpu=k6:%(cpp_k6)} \
%{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}" %{!mcpu*:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}"
#endif #endif
...@@ -357,6 +356,7 @@ extern int ix86_arch; ...@@ -357,6 +356,7 @@ extern int ix86_arch;
#define EXTRA_SPECS \ #define EXTRA_SPECS \
{ "cpp_486", CPP_486_SPEC}, \ { "cpp_486", CPP_486_SPEC}, \
{ "cpp_586", CPP_586_SPEC}, \ { "cpp_586", CPP_586_SPEC}, \
{ "cpp_k6", CPP_K6_SPEC}, \
{ "cpp_686", CPP_686_SPEC}, \ { "cpp_686", CPP_686_SPEC}, \
{ "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC }, \ { "cpp_cpu_default", CPP_CPU_DEFAULT_SPEC }, \
{ "cpp_cpu", CPP_CPU_SPEC }, \ { "cpp_cpu", CPP_CPU_SPEC }, \
......
...@@ -3277,8 +3277,15 @@ changequote([,])dnl ...@@ -3277,8 +3277,15 @@ changequote([,])dnl
target_cpu_default2=1 target_cpu_default2=1
;; ;;
i586-*-*) i586-*-*)
case $target_alias in
k6-*)
target_cpu_default2=4
;;
*)
target_cpu_default2=2 target_cpu_default2=2
;; ;;
esac
;;
i686-*-* | i786-*-*) i686-*-* | i786-*-*)
target_cpu_default2=3 target_cpu_default2=3
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment