aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-02-28 07:56:36 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-02-27 23:56:36 -0800
commit91ad7e13d14ce8e5f855cc6c93ce5901ea8ec7fc (patch)
tree4f406b1e9c8ef9bc0f2be04c142e4493f85fc3b0
parent55c4eeaa4c017995bb3b75277413c8cef6bae7d7 (diff)
downloadgcc-91ad7e13d14ce8e5f855cc6c93ce5901ea8ec7fc.zip
gcc-91ad7e13d14ce8e5f855cc6c93ce5901ea8ec7fc.tar.gz
gcc-91ad7e13d14ce8e5f855cc6c93ce5901ea8ec7fc.tar.bz2
Don't set the default arch for i[34567]86-*-darwin*|x86_64-*-darwin*.
2010-02-27 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/43202 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin* by default. Don't set the default arch for i[34567]86-*-darwin*|x86_64-*-darwin*. From-SVN: r157119
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config.gcc11
2 files changed, 15 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7c85688..09606c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,6 +1,13 @@
2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/43202
+ * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
+ by default. Don't set the default arch for
+ i[34567]86-*-darwin*|x86_64-*-darwin*.
+
+2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/43202
* config.gcc: Enable SSE math for i[34567]86-*-darwin* by
default. Set the default 32bit/64bit archs with $with_arch
instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index c0239c0..8d0475f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -1086,9 +1086,6 @@ i[34567]86-*-darwin*)
need_64bit_hwint=yes
need_64bit_isa=yes
- # SSE math is enabled for Darwin by default.
- with_fpmath=${with_fpmath:-sse}
-
# This is so that '.../configure && make' doesn't fail due to
# config.guess deciding that the configuration is i386-*-darwin* and
# then this file using that to set --with-cpu=i386 which has no -m64
@@ -2860,6 +2857,10 @@ esac
# This block sets nothing except for with_arch.
if test x$with_arch = x ; then
case ${target} in
+ i[34567]86-*-darwin*|x86_64-*-darwin*)
+ # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
+ # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
+ ;;
i[34567]86-*-*)
# --with-fpmath sets the default ISA to SSE2, which is the same
# ISA supported by Pentium 4.
@@ -2876,6 +2877,10 @@ if test x$with_arch = x ; then
# Avoid overriding --with-arch-32 and --with-arch-64 values.
case ${target} in
+ i[34567]86-*-darwin*|x86_64-*-darwin*)
+ # Default arch is set via TARGET_SUBTARGET32_ISA_DEFAULT
+ # and TARGET_SUBTARGET64_ISA_DEFAULT in config/i386/darwin.h.
+ ;;
i[34567]86-*-*|x86_64-*-*)
if test x$with_arch_32 != x || test x$with_arch_64 != x; then
if test x$with_arch_32 = x; then