From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LKsiL-00013L-4T for garchives@archives.gentoo.org; Thu, 08 Jan 2009 11:06:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FFC2E063D; Thu, 8 Jan 2009 11:06:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4BB84E063D for ; Thu, 8 Jan 2009 11:06:11 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id B15F4648C4 for ; Thu, 8 Jan 2009 11:06:10 +0000 (UTC) Received: from gengor by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1LKsiI-0005i0-F9 for gentoo-commits@lists.gentoo.org; Thu, 08 Jan 2009 11:06:10 +0000 From: "Gordon Malm (gengor)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, gengor@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: toolchain-funcs.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: toolchain-funcs.eclass X-VCS-Directories: eclass X-VCS-Committer: gengor X-VCS-Committer-Name: Gordon Malm Content-Type: text/plain; charset=utf8 Message-Id: Sender: Gordon Malm Date: Thu, 08 Jan 2009 11:06:10 +0000 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: 54a5d59e-543e-40a0-ab2d-b4d1fc4c8276 X-Archives-Hash: 9be354abb9a2dee2760385d1faf5f6d7 gengor 09/01/08 11:06:10 Modified: toolchain-funcs.eclass Log: Add quoting to comparison on gcc-specs- funcs - fixes false results wit= h GCC 4.x Revision Changes Path 1.84 eclass/toolchain-funcs.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.84&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?rev=3D1.84&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/toolchain-f= uncs.eclass?r1=3D1.83&r2=3D1.84 Index: toolchain-funcs.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/toolchain-funcs.eclass,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- toolchain-funcs.eclass 8 Jan 2009 09:56:00 -0000 1.83 +++ toolchain-funcs.eclass 8 Jan 2009 11:06:10 -0000 1.84 @@ -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.83 = 2009/01/08 09:56:00 gengor Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.84 = 2009/01/08 11:06:10 gengor Exp $ =20 # @ECLASS: toolchain-funcs.eclass # @MAINTAINER: @@ -349,37 +349,37 @@ gcc-specs-relro() { local directive directive=3D$(gcc-specs-directive link_command) - return $([[ ${directive/\{!norelro:} !=3D ${directive} ]]) + return $([[ "${directive/\{!norelro:}" !=3D "${directive}" ]]) } # Returns true if gcc sets now gcc-specs-now() { local directive directive=3D$(gcc-specs-directive link_command) - return $([[ ${directive/\{!nonow:} !=3D ${directive} ]]) + return $([[ "${directive/\{!nonow:}" !=3D "${directive}" ]]) } # Returns true if gcc builds PIEs gcc-specs-pie() { local directive directive=3D$(gcc-specs-directive cc1) - return $([[ ${directive/\{!nopie:} !=3D ${directive} ]]) + return $([[ "${directive/\{!nopie:}" !=3D "${directive}" ]]) } # Returns true if gcc builds with the stack protector gcc-specs-ssp() { local directive directive=3D$(gcc-specs-directive cc1) - return $([[ ${directive/\{!fno-stack-protector:} !=3D ${directive} ]]) + return $([[ "${directive/\{!fno-stack-protector:}" !=3D "${directive}" = ]]) } # Returns true if gcc upgrades fstack-protector to fstack-protector-all gcc-specs-ssp-to-all() { local directive directive=3D$(gcc-specs-directive cc1) - return $([[ ${directive/\{!fno-stack-protector-all:} !=3D ${directive} = ]]) + return $([[ "${directive/\{!fno-stack-protector-all:}" !=3D "${directiv= e}" ]]) } # Returns true if gcc builds with fno-strict-overflow gcc-specs-nostrict() { local directive directive=3D$(gcc-specs-directive cc1) - return $([[ ${directive/\{!fstrict-overflow:} !=3D ${directive} ]]) + return $([[ "${directive/\{!fstrict-overflow:}" !=3D "${directive}" ]]) } =20 =20