From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RlysZ-0003Ut-P4 for garchives@archives.gentoo.org; Sat, 14 Jan 2012 08:22:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4045E0804; Sat, 14 Jan 2012 08:22:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 807E3E0804 for ; Sat, 14 Jan 2012 08:22:16 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E8ADB1B4003 for ; Sat, 14 Jan 2012 08:22:15 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id 121D62004B; Sat, 14 Jan 2012 08:22:14 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: flag-o-matic.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20120114082214.121D62004B@flycatcher.gentoo.org> Date: Sat, 14 Jan 2012 08:22:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3a650165-01b5-4826-a4f4-a29e549c714d X-Archives-Hash: ebe4174f2ae1ec7431cdcc5ecb1359f1 vapier 12/01/14 08:22:14 Modified: flag-o-matic.eclass Log: mark has_m32 as dead since no one uses it, and mark has_m64 as a warnin= g until xalan-c gets fixed #398855 Revision Changes Path 1.166 eclass/flag-o-matic.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.166&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.166&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?r1=3D1.165&r2=3D1.166 Index: flag-o-matic.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v retrieving revision 1.165 retrieving revision 1.166 diff -u -r1.165 -r1.166 --- flag-o-matic.eclass 14 Jan 2012 08:05:32 -0000 1.165 +++ flag-o-matic.eclass 14 Jan 2012 08:22:13 -0000 1.166 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.165 20= 12/01/14 08:05:32 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.166 20= 12/01/14 08:22:13 vapier Exp $ =20 # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -519,6 +519,8 @@ # WORKS. Non-multilib gcc will take both -m32 and -m64. If the flag work= s # return code is 0, else the return code is 1. has_m64() { + eqawarn "${FUNCNAME}: don't use this anymore" + # this doesnt test if the flag is accepted, it tests if the flag # actually -WORKS-. non-multilib gcc will take both -m32 and -m64! # please dont replace this function with test_flag in some future @@ -534,27 +536,8 @@ return 1 } =20 -# @FUNCTION: has_m32 -# @DESCRIPTION: -# This doesn't test if the flag is accepted, it tests if the flag actual= ly -# WORKS. Non-mulilib gcc will take both -m32 and -64. If the flag works = return -# code is 0, else return code is 1. has_m32() { - # this doesnt test if the flag is accepted, it tests if the flag - # actually -WORKS-. non-multilib gcc will take both -m32 and -m64! - # please dont replace this function with test_flag in some future - # clean-up! - - [ "$(tc-arch)" =3D "amd64" ] && has_multilib_profile && return 0 - - local temp=3D$(emktemp) - echo "int main() { return(0); }" > "${temp}".c - MY_CC=3D$(tc-getCC) - ${MY_CC/ .*/} -m32 -o "$(emktemp)" "${temp}".c > /dev/null 2>&1 - local ret=3D$? - rm -f "${temp}".c - [[ ${ret} !=3D 1 ]] && return 0 - return 1 + die "${FUNCNAME}: don't use this anymore" } =20 # @FUNCTION: replace-sparc64-flags