delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/30/04:45:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=pnTrlRSwwOk2ISRQvsQlh8IEK7ViMAZiG/nt3cOGXaFcIeq/W2ByU
HDAJSTuPnX5gVNRAQlSwEpbsMPMUZjcKww/QpAcFFJKJtfHSOGP5Eh+BXCF8qlsm
MAvvWAAB7yeI/ghwShiXrRrfTao6vi8/K+1IybXVSn0ic85jbc2jcg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=k7qinm3bwJktuFaXMg+01/rgWeI=; b=AXDRUMoql91MR8usJD20M2ZiUBK8
AP3URxcFYAv0mlGzM5z8+pyPzWaaF40ZFXDcvTU6X3IV8vk123aKh0MMTC1cjUnp
Mj1gLVM0FDctdZCWOsfWhjzfuOBAx3kBN5fGWaoCbxb2wyeTzlccoQ3G9JNp0ZLA
jauLxzKiPHR+XJQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
Date: Mon, 30 May 2016 10:44:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: lint kills _Noreturn
Message-ID: <20160530084454.GF12694@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <6fef0097-c076-2691-c4f9-2af5a050a17e AT cornell DOT edu> <86fut07qha DOT fsf AT gmail DOT com> <9c66686a-0af8-dbfe-7804-797df8aad7c6 AT cornell DOT edu>
MIME-Version: 1.0
In-Reply-To: <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu>
User-Agent: Mutt/1.6.1 (2016-04-27)

--KJY2Ze80yH5MUxol
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 <sys/cdefs.h>
> > > _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"

-----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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019