From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129568 invoked by alias); 29 May 2016 17:21:59 -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 129559 invoked by uid 89); 29 May 2016 17:21:58 -0000 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 Received: from limerock01.mail.cornell.edu (HELO limerock01.mail.cornell.edu) (128.84.13.241) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 29 May 2016 17:21:48 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock01.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u4THLjKX026118 for ; Sun, 29 May 2016 13:21:46 -0400 Received: from [192.168.1.3] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u4THLipt005915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 29 May 2016 13:21:45 -0400 Subject: Re: lint kills _Noreturn To: cygwin@cygwin.com References: <6fef0097-c076-2691-c4f9-2af5a050a17e@cornell.edu> <86fut07qha.fsf@gmail.com> From: Ken Brown Message-ID: <9c66686a-0af8-dbfe-7804-797df8aad7c6@cornell.edu> Date: Sun, 29 May 2016 22:24:00 -0000 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 X-SW-Source: 2016-05/txt/msg00384.txt.bz2 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