diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-02-28 07:23:31 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-02-27 23:23:31 -0800 |
commit | 55c4eeaa4c017995bb3b75277413c8cef6bae7d7 (patch) | |
tree | da67710dd17fa67b58e06974f4efa3f08e90497b /gcc | |
parent | d022747d9fe46796e1386c90185db4b474949413 (diff) | |
download | gcc-55c4eeaa4c017995bb3b75277413c8cef6bae7d7.zip gcc-55c4eeaa4c017995bb3b75277413c8cef6bae7d7.tar.gz gcc-55c4eeaa4c017995bb3b75277413c8cef6bae7d7.tar.bz2 |
Restore i[34567]86-*-darwin* bootstrap.
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.
From-SVN: r157118
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config.gcc | 19 |
2 files changed, 13 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 049729b..7c85688 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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. + 2010-02-27 Richard Guenther <rguenther@suse.de> PR tree-optimization/43186 diff --git a/gcc/config.gcc b/gcc/config.gcc index 0d46878..c0239c0 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1086,6 +1086,9 @@ 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 @@ -2857,16 +2860,6 @@ esac # This block sets nothing except for with_arch. if test x$with_arch = x ; then case ${target} in - i[34567]86-*-darwin*) - # SSE math is enabled for Darwin, which sets the default ISA to - # 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-*-*) # --with-fpmath sets the default ISA to SSE2, which is the same # ISA supported by Pentium 4. @@ -2886,7 +2879,7 @@ if test x$with_arch = x ; then 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 - with_arch_32=$arch + with_arch_32=$with_arch fi if test x$with_arch_64 = x; then if test $arch_without_64bit = yes; then @@ -2894,14 +2887,14 @@ if test x$with_arch = x ; then # doesn't support 64bit. with_arch_64=x86-64 else - with_arch_64=$arch + with_arch_64=$with_arch fi fi with_arch= elif test $arch_without_64bit$need_64bit_isa = yesyes; then # Set the default 64bit arch to x86-64 if the default arch # doesn't support 64bit and we need 64bit ISA. - with_arch_32=$arch + with_arch_32=$with_arch with_arch_64=x86-64 with_arch= fi |