summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-01 00:13:01 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-01 00:13:01 +0000
commitffbf4bf66c48862b81b8836e41d9bcb589d64ceb (patch)
treea99960b1763f5b2e63fa43397f321c212e179c6a /eclass/toolchain.eclass
parentEAPI=2; slot gtk+ dep (diff)
downloadhistorical-ffbf4bf66c48862b81b8836e41d9bcb589d64ceb.tar.gz
historical-ffbf4bf66c48862b81b8836e41d9bcb589d64ceb.tar.bz2
historical-ffbf4bf66c48862b81b8836e41d9bcb589d64ceb.zip
auto enable e500-double for ppc targets when possible #353380 by Alexander Dubov
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ffe836912b93..ea55ac1a6eb5 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.450 2011/02/13 12:10:12 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.451 2011/03/01 00:13:01 vapier Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -1252,6 +1252,11 @@ gcc-compiler-configure() {
hppa)
[[ ${GCCMAJOR} == "3" ]] && confgcc="${confgcc} --enable-sjlj-exceptions"
;;
+ # Set up defaults based on current CFLAGS
+ ppc)
+ is-flagq -mfloat-gprs=double && confgcc+=" --enable-e500-double"
+ [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=" --enable-e500-double"
+ ;;
esac
GCC_LANG="c"