From ffbf4bf66c48862b81b8836e41d9bcb589d64ceb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Mar 2011 00:13:01 +0000 Subject: auto enable e500-double for ppc targets when possible #353380 by Alexander Dubov --- eclass/toolchain.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'eclass/toolchain.eclass') 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 @@ -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" -- cgit v1.2.3-65-gdbad