From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 22 06:37:02 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 89AC79F1; Tue, 22 Oct 2013 06:37:02 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-we0-x22e.google.com (mail-we0-x22e.google.com [IPv6:2a00:1450:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F2E0E21F4; Tue, 22 Oct 2013 06:37:01 +0000 (UTC) Received: by mail-we0-f174.google.com with SMTP id u56so7550124wes.19 for ; Mon, 21 Oct 2013 23:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=voHFBnfvQO2s3PGVh1hzSxJ55KHvP+J7tZJ192Zcmp8=; b=E/t6+9f+URSAqa35XtspZHPl2SHAS22R8+2zYSxpnPQsVk4mcu1TKciGJpJT1xp5SR qXlM5Gxy63Qjj0B+2syqz+YpyP3/n9aEL4bnFErmoznc2XVF3Dnwyjt+VqJ1INs5IFyv e8udE0hNckNwBa2q7+Vcq0rjBWJVrNBKJj47Oor6hrm+fcNoQ1GA8i0VzO2sIjhq6MkX pfOnvdhW2P5BHZzI+mGSRSw+6EsuXmcF11Pp5KptidUNw5GkbbTVHvlBbv8TDQB5UL3U WhJBPDmgBmx6B/RyI2iOS+zoFLNl4m4R9am/9qtcCDYeZAMdlFhZ6ASfQtt4PmkfVagL 86nw== X-Received: by 10.194.109.68 with SMTP id hq4mr17047897wjb.12.1382423819917; Mon, 21 Oct 2013 23:36:59 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id c10sm3000961wie.11.2013.10.21.23.36.58 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 21 Oct 2013 23:36:59 -0700 (PDT) Sender: Baptiste Daroussin Date: Tue, 22 Oct 2013 08:36:56 +0200 From: Baptiste Daroussin To: sbruno@freebsd.org Subject: Re: gperf -- #define for if (0) ; else for Message-ID: <20131022063655.GI20973@ithaqua.etoilebsd.net> References: <1382327705.2610.9.camel@localhost> <52650223.2020707@cran.org.uk> <1382395820.4447.1.camel@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/GPgYEyhnw15BExa" Content-Disposition: inline In-Reply-To: <1382395820.4447.1.camel@localhost> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Bruce Cran , "freebsd-hackers@freebsd.org" , Benjamin Kaduk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Oct 2013 06:37:02 -0000 --/GPgYEyhnw15BExa Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 21, 2013 at 06:50:20PM -0400, Sean Bruno wrote: > On Mon, 2013-10-21 at 11:29 +0100, Bruce Cran wrote: > > On 10/21/2013 5:13 AM, Benjamin Kaduk wrote: > > > > > >> 37 > > >> 38 /* Assume ISO C++ 'for' scoping rule. */ > > >> 39 #define for if (0) ; else for > > > > > > StackOverflow (!) [1] suggests that they're a workaround for a bug in= =20 > > > old versions of Visual Studio. > >=20 > > http://msdn.microsoft.com/en-us/library/b80153d8%28v=3Dvs.90%29.aspx al= so=20 > > documents it. Visual C++ 6 was released in 1998, which was=20 > > unfortunately the same year as the first ISO C++ standard. > >=20 >=20 >=20 > Hrm, it looks like gperf is in ports ... should we consider just > removing it from the base system in the first place? >=20 Yes that is the plan :), remember that gperf is a dependency for gcc 4.2, s= o as long as we have gcc 4.2 we need gperf in base, we can probably turn it off depending on the gcc option (but that needs some work on the ports tree.) If you are volunteering at turning of gperf building, please prepare a patch against head, create a PR with [exp-run] in the subject and as portmgr for a exp, best would also be working with someone so that an infrastructure to d= epend on gperf is created in the ports tree (aka a USES=3Dgperf). regards, Bapt --/GPgYEyhnw15BExa Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlJmHQcACgkQ8kTtMUmk6EwtBACfSYg32etX1alYBlx0HZjsxu+k gjAAoJ2I5RmD2FIKizuhe6+ReZ2kEkq+ =/AeR -----END PGP SIGNATURE----- --/GPgYEyhnw15BExa--