Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain.eclass
Date: Mon, 01 Jun 2015 07:17:46
Message-Id: 20150601071740.872D5A13@oystercatcher.gentoo.org
1 vapier 15/06/01 07:17:40
2
3 Modified: toolchain.eclass
4 Log:
5 add USE=debug to control --enable-checking behavior for all versions rather than just snapshots
6
7 Revision Changes Path
8 1.674 eclass/toolchain.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.674&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?rev=1.674&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/toolchain.eclass?r1=1.673&r2=1.674
13
14 Index: toolchain.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v
17 retrieving revision 1.673
18 retrieving revision 1.674
19 diff -u -r1.673 -r1.674
20 --- toolchain.eclass 1 Jun 2015 07:04:04 -0000 1.673
21 +++ toolchain.eclass 1 Jun 2015 07:17:40 -0000 1.674
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2015 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.673 2015/06/01 07:04:04 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.674 2015/06/01 07:17:40 vapier Exp $
27
28 # Maintainer: Toolchain Ninjas <toolchain@g.o>
29
30 @@ -134,7 +134,7 @@
31 IUSE_DEF=( nls nptl )
32
33 if [[ ${PN} != "kgcc64" && ${PN} != gcc-* ]] ; then
34 - IUSE+=" altivec"
35 + IUSE+=" altivec debug"
36 IUSE_DEF+=( cxx fortran )
37 [[ -n ${PIE_VER} ]] && IUSE+=" nopie"
38 [[ -n ${HTB_VER} ]] && IUSE+=" boundschecking"
39 @@ -880,10 +880,8 @@
40
41 # Use the default ("release") checking because upstream usually neglects
42 # to test "disabled" so it has a history of breaking. #317217
43 - if tc_version_is_at_least 4 || [[ -n ${GCC_CHECKS_LIST} ]] ; then
44 - confgcc+=( --enable-checking=${GCC_CHECKS_LIST:-release} )
45 - else
46 - confgcc+=( --disable-checking )
47 + if tc_version_is_at_least 3.4 ; then
48 + confgcc+=( --enable-checking="${GCC_CHECKS_LIST:-$(usex debug yes release)}" )
49 fi
50
51 # Branding