Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Mon, 13 Feb 2017 12:15:29
Message-Id: 1486988078.07c97343ca94967e51fef397b1cff2b1baa8b093.ulm@gentoo
1 commit: 07c97343ca94967e51fef397b1cff2b1baa8b093
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 11 10:04:51 2017 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 13 12:14:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07c97343
7
8 flag-o-matic.eclass: Mark has_m64() as dead.
9
10 The function is not used by any ebuild.
11
12 eclass/flag-o-matic.eclass | 23 ++---------------------
13 1 file changed, 2 insertions(+), 21 deletions(-)
14
15 diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
16 index 23319ad407..57d207b083 100644
17 --- a/eclass/flag-o-matic.eclass
18 +++ b/eclass/flag-o-matic.eclass
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2014 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Id$
24
25 @@ -562,27 +562,8 @@ get-flag() {
26 return 1
27 }
28
29 -# @FUNCTION: has_m64
30 -# @DESCRIPTION:
31 -# This doesn't test if the flag is accepted, it tests if the flag actually
32 -# WORKS. Non-multilib gcc will take both -m32 and -m64. If the flag works
33 -# return code is 0, else the return code is 1.
34 has_m64() {
35 - eqawarn "${FUNCNAME}: don't use this anymore"
36 -
37 - # this doesnt test if the flag is accepted, it tests if the flag
38 - # actually -WORKS-. non-multilib gcc will take both -m32 and -m64!
39 - # please dont replace this function with test_flag in some future
40 - # clean-up!
41 -
42 - local temp="$(emktemp)"
43 - echo "int main() { return(0); }" > "${temp}".c
44 - MY_CC=$(tc-getCC)
45 - ${MY_CC/ .*/} -m64 -o "$(emktemp)" "${temp}".c > /dev/null 2>&1
46 - local ret=$?
47 - rm -f "${temp}".c
48 - [[ ${ret} != 1 ]] && return 0
49 - return 1
50 + die "${FUNCNAME}: don't use this anymore"
51 }
52
53 has_m32() {