From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90567 invoked by alias); 30 May 2016 08:45:11 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 90526 invoked by uid 89); 30 May 2016 08:45:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-95.8 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=Hx-languages-length:1508, our X-HELO: calimero.vinschen.de Received: from ipbcc0227e.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.34.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 May 2016 08:44:56 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 91AE6A805D3; Mon, 30 May 2016 10:44:54 +0200 (CEST) Date: Mon, 30 May 2016 10:35:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: lint kills _Noreturn Message-ID: <20160530084454.GF12694@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <6fef0097-c076-2691-c4f9-2af5a050a17e@cornell.edu> <86fut07qha.fsf@gmail.com> <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KJY2Ze80yH5MUxol" Content-Disposition: inline In-Reply-To: <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu> User-Agent: Mutt/1.6.1 (2016-04-27) X-SW-Source: 2016-05/txt/msg00398.txt.bz2 --KJY2Ze80yH5MUxol Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1574 On May 29 13:21, Ken Brown wrote: > On 5/29/2016 12:56 PM, Andy Moreton wrote: > > On Sun 29 May 2016, Ken Brown wrote: > >=20 > > > If lint is defined, then /usr/include/sys/cdefs.h defines _Noreturn a= s a macro > > > that expands to nothing. Is this intentional? > > >=20 > > > Simple test case: > > >=20 > > > $ cat test.h > > > #define lint 1 > > > #include > > > _Noreturn void foo (void); > > >=20 > > > $ gcc -E test.h | grep foo > > > void foo (void); > > >=20 > > >=20 > > > Ken > >=20 > > A traditional lint program may not support the new C11 keywords, but > > will define the 'lint' symbol. See, e.g. > > http://www.unix.com/man-page/FreeBSD/1/lint >=20 > But in the present context (see my second message), we're redefining C11 > keywords even though __STDC_VERSION__ >=3D 201112L. >=20 > > Surely the real problem here is a program which is not a lint executable > > defining 'lint' ? >=20 > The program is emacs built from a git checkout of the master branch. By > default the configure option --enable-gcc-checking is used, and this caus= es > lint to be defined in src/config.h. It doesn't seem to be a problem on > platforms other than Cygwin; or at least it hasn't been reported. Our cdefs.h is taken almost verbatim from FreeBSD, and FreeBSD's cdefs.h uses the exact same expressions chcking for lint. I'm sure you'd see the same problems there. Don't set lint. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --KJY2Ze80yH5MUxol Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXS/2GAAoJEPU2Bp2uRE+g/XwP/R0szez3HZLsZLrJRLZDZSRN D0E0iQuivYIguYrZ+pP3DVZHcnSAaa31TGMcxzw4xt0tIJqQOf277yoZZbrqy7GR K9e6jkRKjGyPSSTZ03cMbLl5XAQ+5PyVpQVI/nDQ2cXFKfgxhXsEHQgri0JSOG6T qmSqwPjgzQLO0SMmkjE1u+0vdpyieffMwGJZ1IROrHG9IYREb1nTzi9jv8UXGRTH /f711T2TtCPT9Stzp/VBJj4UzVuYSP7s0i5GOn3rOKSJX/qFGFZOjed508EaO9MP 0GegQ9e0F1Vr293K9iu3yWJlP3DJ/cXohVlK/NMozFtXhFRDKc2icH+yKFRtTo1/ JWIi9dwK+b8jbRqluDbBWNwGDZ8QJ/qKikfqy1eLDQt9iv+WLFkSorML8HNynbsZ CU+DFijDKwTcfDonm+cqJnfFrDCaQdo5nnywYweDw9QjOz4nfjWJvUBKexAh320N D1OP+mQt7W5UohJFkqqppQMWJcq9UaEaqZGoUYi1qLXTk7pt/UKkWzWzOfodvm0W 9krxAF71JYZ8GRnejqY4r4QA2HjkhB4fU7PxNM/ZViBdBSxRraFL/7VIoczb+90H x0YicQC3iboYL6Q2Oe0dwdHaUN2X6yi/Oj5XorCTfFVbKakv5LFxjosqs9wvCUnx LGgE+7HBUJh0ZcseQUZQ =p/Ga -----END PGP SIGNATURE----- --KJY2Ze80yH5MUxol--