Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14214 - main/trunk/bin
Date: Tue, 08 Sep 2009 01:44:27
Message-Id: E1Mkpkv-0006Zp-73@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-09-08 01:44:24 +0000 (Tue, 08 Sep 2009)
3 New Revision: 14214
4
5 Modified:
6 main/trunk/bin/misc-functions.sh
7 Log:
8 In debug mode, avoid showing gcc QA search strings in the trace, so they won't
9 trigger false positives. Thanks to Amit Dor-Shifer <amitds@××××××.com> for
10 reporting.
11
12
13 Modified: main/trunk/bin/misc-functions.sh
14 ===================================================================
15 --- main/trunk/bin/misc-functions.sh 2009-09-07 22:39:21 UTC (rev 14213)
16 +++ main/trunk/bin/misc-functions.sh 2009-09-08 01:44:24 UTC (rev 14214)
17 @@ -408,6 +408,9 @@
18
19 # Evaluate misc gcc warnings
20 if [[ -n ${PORTAGE_LOG_FILE} && -r ${PORTAGE_LOG_FILE} ]] ; then
21 + # In debug mode, this variable definition will produce
22 + # a false positive if it's shown in the trace.
23 + [[ $PORTAGE_DEBUG = 1 ]] && set +x
24 local m msgs=(
25 ": warning: dereferencing type-punned pointer will break strict-aliasing rules$"
26 ": warning: dereferencing pointer .* does break strict-aliasing rules$"
27 @@ -417,6 +420,7 @@
28 ": warning: comparisons like X<=Y<=Z do not have their mathematical meaning$"
29 ": warning: null argument where non-null required "
30 )
31 + [[ $PORTAGE_DEBUG = 1 ]] && set -x
32 abort="no"
33 i=0
34 while [[ -n ${msgs[${i}]} ]] ; do