Commit 4d16c0dc by H.J. Lu Committed by H.J. Lu

Set the default arch at least to Prescott/Pentium 4.

2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>

	* config.gcc: Set the default arch at least to Prescott for
	i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
	if SSE math is enabled.

From-SVN: r157101
parent 0e94b750
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Set the default arch at least to Prescott for
i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
if SSE math is enabled.
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org> 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
* diagnostic.c (diagnostic_initialize): Update. * diagnostic.c (diagnostic_initialize): Update.
......
...@@ -2625,16 +2625,20 @@ esac ...@@ -2625,16 +2625,20 @@ esac
# to generic if there is no processor scheduler model for the target. # to generic if there is no processor scheduler model for the target.
arch= arch=
cpu= cpu=
arch_without_sse2=no
case ${target} in case ${target} in
i386-*-*) i386-*-*)
arch=i386 arch=i386
cpu=i386 cpu=i386
arch_without_sse2=yes
;; ;;
i486-*-*) i486-*-*)
arch=i486 arch=i486
cpu=i486 cpu=i486
arch_without_sse2=yes
;; ;;
i586-*-*) i586-*-*)
arch_without_sse2=yes
case ${target_noncanonical} in case ${target_noncanonical} in
k6_2-*) k6_2-*)
arch=k6-2 arch=k6-2
...@@ -2675,22 +2679,27 @@ case ${target} in ...@@ -2675,22 +2679,27 @@ case ${target} in
athlon_xp-*|athlon_mp-*|athlon_4-*) athlon_xp-*|athlon_mp-*|athlon_4-*)
arch=athlon-4 arch=athlon-4
cpu=athlon-4 cpu=athlon-4
arch_without_sse2=yes
;; ;;
athlon_tbird-*|athlon-*) athlon_tbird-*|athlon-*)
arch=athlon arch=athlon
cpu=athlon cpu=athlon
arch_without_sse2=yes
;; ;;
geode-*) geode-*)
arch=geode arch=geode
cpu=geode cpu=geode
arch_without_sse2=yes
;; ;;
pentium2-*) pentium2-*)
arch=pentium2 arch=pentium2
cpu=pentium2 cpu=pentium2
arch_without_sse2=yes
;; ;;
pentium3-*|pentium3m-*) pentium3-*|pentium3m-*)
arch=pentium3 arch=pentium3
cpu=pentium3 cpu=pentium3
arch_without_sse2=yes
;; ;;
pentium4-*|pentium4m-*) pentium4-*|pentium4m-*)
arch=pentium4 arch=pentium4
...@@ -2719,10 +2728,12 @@ case ${target} in ...@@ -2719,10 +2728,12 @@ case ${target} in
pentiumpro-*) pentiumpro-*)
arch=pentiumpro arch=pentiumpro
cpu=pentiumpro cpu=pentiumpro
arch_without_sse2=yes
;; ;;
*) *)
arch=pentiumpro arch=pentiumpro
cpu=generic cpu=generic
arch_without_sse2=yes
;; ;;
esac esac
;; ;;
...@@ -2836,14 +2847,22 @@ esac ...@@ -2836,14 +2847,22 @@ esac
if test x$with_arch = x ; then if test x$with_arch = x ; then
case ${target} in case ${target} in
i[34567]86-*-darwin*) i[34567]86-*-darwin*)
# Don't set default arch for Darwin since it will set the default # SSE math is enabled for Darwin, which sets the default ISA to
# ISA to SSE2. # SSE2. The minimum ISA supported Darwin is SSE3, which is the
# same as Prescott.
if test $arch_without_sse2 = no; then
with_arch=$arch
else
with_arch=prescott
fi
;; ;;
i[34567]86-*-*) i[34567]86-*-*)
# Don't set default arch if --with-fpmath is used since it will set # --with-fpmath sets the default ISA to SSE2, which is the same
# the default ISA to SSE2. # ISA supported by Pentium 4.
if test x$with_fpmath = x; then if test x$with_fpmath = x || test $arch_without_sse2 = no; then
with_arch=$arch with_arch=$arch
else
with_arch=pentium4
fi fi
;; ;;
x86_64-*-*) x86_64-*-*)
......
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