diff options
author | Joshua Kinard <kumba@gentoo.org> | 2008-10-24 07:30:35 +0000 |
---|---|---|
committer | Joshua Kinard <kumba@gentoo.org> | 2008-10-24 07:30:35 +0000 |
commit | 428afb256ef9da8e092be8f62a6cf94fb51caf7e (patch) | |
tree | c17cf994b0c3f7b6d7fc7e9a4e30fc82c0c74de3 /eclass/toolchain.eclass | |
parent | Automated update of use.local.desc (diff) | |
download | historical-428afb256ef9da8e092be8f62a6cf94fb51caf7e.tar.gz historical-428afb256ef9da8e092be8f62a6cf94fb51caf7e.tar.bz2 historical-428afb256ef9da8e092be8f62a6cf94fb51caf7e.zip |
Add a configure switch for gcc-4.3's fixed-point arithmetic support for MIPS targets, as enabling this support lengthens gcc's compile time by several hours, depending on the machine.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 7c08daacbcfa..ee819b950606 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.363 2008/10/20 01:04:38 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.364 2008/10/24 07:30:35 kumba Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -155,6 +155,7 @@ else tc_version_is_at_least "4.0" && IUSE="${IUSE} objc-gc mudflap" tc_version_is_at_least "4.1" && IUSE="${IUSE} objc++" tc_version_is_at_least "4.2" && IUSE="${IUSE} openmp" + tc_version_is_at_least "4.3" && IUSE="${IUSE} fixed-point" fi fi @@ -1266,6 +1267,12 @@ gcc_do_configure() { # ppc altivec support confgcc="${confgcc} $(use_enable altivec)" + # gcc has fixed-point arithmetic support in 4.3 for mips targets that can + # significantly increase compile time by several hours. This will allow + # users to control this feature in the event they need the support. + tc_version_is_at_least "4.3" && confgcc="${confgcc} $(use_enable fixed-point)" + + [[ $(tc-is-softfloat) == "yes" ]] && confgcc="${confgcc} --with-float=soft" # Native Language Support |