diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2010-02-26 14:52:01 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2010-02-26 06:52:01 -0800 |
commit | a3af5e261521a29fc418f4125ce9a70f711844db (patch) | |
tree | 051265a5e5052cc78c76614600b4d97cd418492b /gcc/config.gcc | |
parent | 482b2e5b35aa5cb70d5d5c3ac3073fb432886a1c (diff) | |
download | gcc-a3af5e261521a29fc418f4125ce9a70f711844db.zip gcc-a3af5e261521a29fc418f4125ce9a70f711844db.tar.gz gcc-a3af5e261521a29fc418f4125ce9a70f711844db.tar.bz2 |
Support --with-fpmath=sse for x86.
2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
* config.gcc: Support --with-fpmath=sse for x86.
* config/i386/ssemath.h: New.
* doc/install.texi (--with-fpmath=sse): Documented.
From-SVN: r157090
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index d2d4ad7..df84f50 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -2835,7 +2835,18 @@ esac # This block sets nothing except for with_arch. if test x$with_arch = x ; then case ${target} in - i[34567]86-*-*|x86_64-*-*) + i[34567]86-*-darwin*) + # Don't set default arch for Darwin since it will set the default + # ISA to SSE2. + ;; + i[34567]86-*-*) + # Don't set default arch if --with-fpmath is used since it will set + # the default ISA to SSE2. + if test x$with_fpmath = x; then + with_arch=$arch + fi + ;; + x86_64-*-*) with_arch=$arch ;; esac @@ -2856,6 +2867,27 @@ if test x$with_arch = x ; then esac fi +# Support --with-fpmath. +if test x$with_fpmath != x; then + case ${target} in + i[34567]86-*-* | x86_64-*-*) + case ${with_fpmath} in + sse) + tm_file="${tm_file} i386/ssemath.h" + ;; + *) + echo "Invalid --with-fpmath=$with_fpmath" 1>&2 + exit 1 + ;; + esac + ;; + *) + echo "--with-fpmath isn't supported for $target." 1>&2 + exit 1 + ;; + esac +fi + # Similarly for --with-schedule. if test x$with_schedule = x; then case ${target} in |