diff options
author | Gordon Malm <gengor@gentoo.org> | 2009-01-02 22:14:18 +0000 |
---|---|---|
committer | Gordon Malm <gengor@gentoo.org> | 2009-01-02 22:14:18 +0000 |
commit | 4edb466758d31a1b3d8eca7d657b162972cb0f10 (patch) | |
tree | c3258f8b7c75d6e2292fe9a8cd8fcc92a3a4572e /eclass/toolchain-funcs.eclass | |
parent | add app-i18n/chinput to app-i18n/unicon mask (diff) | |
download | gentoo-2-4edb466758d31a1b3d8eca7d657b162972cb0f10.tar.gz gentoo-2-4edb466758d31a1b3d8eca7d657b162972cb0f10.tar.bz2 gentoo-2-4edb466758d31a1b3d8eca7d657b162972cb0f10.zip |
Add some fno-strict-overflow stuff we missed. Thanks Magnus Granberg (Zorry).
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 1de8eaec052d..bc982bd39e15 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.79 2008/09/16 06:40:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.80 2009/01/02 22:14:18 gengor Exp $ # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -375,6 +375,12 @@ gcc-specs-ssp-to-all() { directive=$(gcc-specs-directive cc1) return $([[ ${directive/\{!fno-stack-protector-all:} != ${directive} ]]) } +# Returns true if gcc builds with fno-strict-overflow +gcc-specs-nostrict() { + local directive + directive=$(gcc-specs-directive cc1) + return $([[ ${directive/\{!fstrict-overflow:} != ${directive} ]]) +} # @FUNCTION: gen_usr_ldscript |