From owner-svn-src-head@freebsd.org Tue Aug 4 18:23:23 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B67B59B2C67 for ; Tue, 4 Aug 2015 18:23:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82A10682 for ; Tue, 4 Aug 2015 18:23:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: by igbpg9 with SMTP id pg9so17102986igb.0 for ; Tue, 04 Aug 2015 11:23:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=E2x9s1Cn0HuFlETcx4JYKG5qwRdDhRiWlH3OOlgq8p8=; b=BdmQwFIDuY9Y0O9i/umBi1XECmxBbnmKP00c289JnSTESJ6x2W0Paxrc+aRSsPK8Tg 5eB6bgtzytlBTiMjiDdDOmXd4fg7gvSU/t7AsmGmAKhBSIF8cgVxFbP896onDioEjJfC JAiL98Him5Rbk53Ajwo58EIbvk+9ZCAWBQV3bIoDcf0Y9u6Vcjjim0xwDm1Y2r/7zOFj pgsrJF5xFINo2zQp4IrMGk/wr6IjopB2M9vETom8wvIVwBJ6MSkhZgzNcG+YYVwVgfuV /FUnZghulmMQG2Axv7feSHLNDZ8P0Xih14E/Y1DzOHMNSGb9zuDGiNG6qi7zBj3+MX/T yWMw== X-Gm-Message-State: ALoCoQkEFjOnR5PICdyBrr5VHczZXNcMZOiSrG5uMxHYKnawKPgfP4Vt2nJKStTuCBKZlmoPuSQq X-Received: by 10.50.88.8 with SMTP id bc8mr922105igb.46.1438712597429; Tue, 04 Aug 2015 11:23:17 -0700 (PDT) Received: from netflix-mac-wired.bsdimp.com ([50.253.99.174]) by smtp.gmail.com with ESMTPSA id k68sm95208iod.8.2015.08.04.11.23.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Aug 2015 11:23:16 -0700 (PDT) Sender: Warner Losh Subject: Re: svn commit: r286103 - head/share/man/man9 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Content-Type: multipart/signed; boundary="Apple-Mail=_75426D4E-E6AF-483A-A501-151C65AC5939"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5 From: Warner Losh In-Reply-To: Date: Tue, 4 Aug 2015 12:23:14 -0600 Cc: Bruce Evans , John-Mark Gurney , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-Id: <2B9D4FA9-FDB2-405D-B8C0-BE9918941159@bsdimp.com> References: <201507310328.t6V3S3LC087650@repo.freebsd.org> <20150731152253.Y1843@besplex.bde.org> To: Ed Schouten X-Mailer: Apple Mail (2.2102) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 18:23:23 -0000 --Apple-Mail=_75426D4E-E6AF-483A-A501-151C65AC5939 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Aug 4, 2015, at 12:19 PM, Ed Schouten wrote: >=20 > 2015-07-31 8:21 GMT+02:00 Bruce Evans : >> For gcc before 4.6, >> the ifdef reduces to using __COUNTER__ as the second variable if >> __COUNTER__ is supported, else nothing. So for the undocumented >> subset of compilers that support __COUNTER__ all cases work, and >> for the complementary subset no cases work (the macro is null). >=20 > I was wondering: could we solve this by not using a typedef, but an > external declaration: >=20 > extern int __whatever[expr ? 1 : -1]; >=20 > I think we can safely repeat this multiple times without triggering > any compiler errors. There=E2=80=99s at least one compiler in common use that warns about extern int fred[1]; extern int fred[1]; being a repeated declaration (despite being legal C). Warner --Apple-Mail=_75426D4E-E6AF-483A-A501-151C65AC5939 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJVwQMSAAoJEGwc0Sh9sBEAnB8P/0Ha/x+2+ZkoK2ALA7O1wDDO C5a1J7JsqmDdkLid1NzcqHZFeOFt6BWiajSw4auIw96f7FAdI3VMR9CCj8DHivfS PFqfLx2SDV6Yb0kE1m456gb8Kgzcq2l8YJWtkGaSO+Lm/vMkUsK63YH0L6uyVX65 6moEk0gJeiodnYMqsLakj3nllpGX4Ozspjy529ra7/RnIxAU72fbX0OBiNGfNJhR xcydjHr/N2SOket8++xUoINhlc3PTGUO9zL7Q3Ftm+FZJMI0JsIogdjGmS0Zvy2i Zogldh72SIRKwr6KGMz5eddH2upqk4d5PTjjMsIHNt6dikbUcLoqNKc2Up6ieQ39 9LhDWf7PorNqStBwXgM+zddpAFeC8BJYDDyvkQ6f9AZYGbtiC1IA1V81XeMqNH6+ efGfbeShmTIB+E7QaoVxYF8V5tZZOKxz/XJCBzesDwP2ixjoFgOH13qh5VgZsBMF ecpRMy/q0zJ05XhVLBvFoTiEAcuDihXBaWh1oRnh/fUXbSrKg7pkOXVoeT83ziKa xG87UYBnejAxMgGQY9JhMbpNn/BxtCwZir1Vyp74cVHKh6j3SWC7dRB03lHs5D71 xYiSU4YcfK8S9YKsYPq9HMDNDvtUMSyq7wETZ0dQ4AQxs8l2Mr+Pz9XIWjmot5n7 DKZYiB2NyAxDo2sQVLty =lanK -----END PGP SIGNATURE----- --Apple-Mail=_75426D4E-E6AF-483A-A501-151C65AC5939--