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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=hltai+F7ACtgfbPc Ujo0eUi0UpSy111v5y7RPlaAQd9RCGpOSzRjfD+50Z6BtJ80BPlAL/qWESAyx83R MqxIleSrjeuyZ8y2Jccgug/CT8svMNpCyDsKO9sMW8w9Mx+hDid0rm+b5APTQqSb DGv4xHuQ0o62gQR6aQa/cXOzjbk= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wIfaP+T1rjdO+1paB6RHUd VmtZY=; b=vS08kfDRnSJFfCwM5LlYb9zb04Fd3xg6+xd0i2kuf3jpFw8FVKWhsA Aa+njFpqU1OKRzdkNBklFDWMfRcH7/9jt3qvDtddYroqiw9xPNUh5VDTpRr1SH4X YUsNpYw0gfuLgZ1vhyaP0e5l15nTlhXIC4z7ZlrnNM7l/0PzZddSA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Andy, moreton, Moreton, Surely X-HELO: limerock01.mail.cornell.edu X-CornellRouted: This message has been Routed already. Subject: Re: lint kills _Noreturn To: cygwin AT cygwin DOT com References: <6fef0097-c076-2691-c4f9-2af5a050a17e AT cornell DOT edu> <86fut07qha DOT fsf AT gmail DOT com> From: Ken Brown Message-ID: <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu> Date: Sun, 29 May 2016 13:21:44 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <86fut07qha.fsf@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-IsSubscribed: yes On 5/29/2016 12:56 PM, Andy Moreton wrote: > On Sun 29 May 2016, Ken Brown wrote: > >> If lint is defined, then /usr/include/sys/cdefs.h defines _Noreturn as a macro >> that expands to nothing. Is this intentional? >> >> Simple test case: >> >> $ cat test.h >> #define lint 1 >> #include >> _Noreturn void foo (void); >> >> $ gcc -E test.h | grep foo >> void foo (void); >> >> >> Ken > > 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 But in the present context (see my second message), we're redefining C11 keywords even though __STDC_VERSION__ >= 201112L. > Surely the real problem here is a program which is not a lint executable > defining 'lint' ? 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 causes 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. Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple