From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10102 Path: news.gmane.org!not-for-mail From: Masanori Ogino Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH v2] Add stdc-predef.h. Date: Wed, 8 Jun 2016 23:57:02 +0900 Message-ID: References: <1459823023-5951-1-git-send-email-masanori.ogino@gmail.com> <20160603190453.GP10893@brightrain.aerifal.cx> <20160604050402.GQ10893@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465398340 22809 80.91.229.3 (8 Jun 2016 15:05:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2016 15:05:40 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10115-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jun 08 17:05:34 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bAevB-0000wO-1K for gllmg-musl@m.gmane.org; Wed, 08 Jun 2016 16:57:29 +0200 Original-Received: (qmail 17522 invoked by uid 550); 8 Jun 2016 14:57:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17504 invoked from network); 8 Jun 2016 14:57:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=tutAm6mOwNWPMhd1SnZWnYyYmzdU+wzBQzo55w2BUHI=; b=KAEn7TQ6R/vas9mLtrAp04GRK0fQSzxQ4jkn0YVBmIVgrngtHBok8qsXjHtGmoDT85 ytBDo2mxlOd73Ea/ahYtoj/rTHE9scoYKBaA8tkNLcg/XEQFddDgGLwfIbqf1+F9F3mQ Ktt7QSvvMo2LpIluZlZCTDuzo8ehF6tvbeeOLFvrplrKMrtrGzWGQ9czDvViNFCZ+an7 Sg+0i1bwFipMQKNeutK7bdoUtPRHgHLMxSGXZOrQKHrvsAzkIjLkxOdaLL/vXIJv7Zjc Q9J2XvzOu9ffcQuabhc1FvCsByOHy7kHYDZYxPz0fpRWhnYvmsAfD61MPjr206qiDce2 Clxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=tutAm6mOwNWPMhd1SnZWnYyYmzdU+wzBQzo55w2BUHI=; b=HiqWabgPbB+6ABLEmODcVzYCDN8025cWM4u4t0rWlqN/X8qzDWCaMFw1pDcMoDYKV1 p1F6EXUPXlnLonxVZy0E5Uyl9LaMCXuFEgtVFB47h17sxHTqCnYrRKwvOOK5jCARkBB0 QLY19kOVnRbavZtb5xrMHb09guYd7DS9ySP7bnnmUPq2vCgApK5XD7SUzFbrfTmmAGnZ b//kOYj/Z9/IZQx2ylt6iJwEd4elHCfvF4eqER1Sioecory+adKQZoMtsv3O6E+SQrzG 7gMa1zn/xY7g1cqR22Ms9bMcS8V+9DQ0DSQRXU72Qu7Bf6f+aFFYzi8CgayEpblV4IBQ hm5w== X-Gm-Message-State: ALyK8tJKViT6c09eAwTRh4yk6w2Zu9zGrIttyFRBPy95TFZuCOkPu/ITJo+4DxOM9Emx4CyN369nf/1g/bO6/Q== X-Received: by 10.157.40.2 with SMTP id m2mr2749618otb.99.1465397823326; Wed, 08 Jun 2016 07:57:03 -0700 (PDT) Original-Sender: masanoriogino@gmail.com In-Reply-To: <20160604050402.GQ10893@brightrain.aerifal.cx> X-Google-Sender-Auth: p-d3smEmKhlXQnWEOANkC7_Ztfw Xref: news.gmane.org gmane.linux.lib.musl.general:10102 Archived-At: 2016-06-04 14:04 GMT+09:00 Rich Felker : > On Sat, Jun 04, 2016 at 01:19:47PM +0900, Masanori Ogino wrote: >> > #define __STDC_ISO_10646__ 201103L >> > #define __STDC_UTF_16__ 1 >> > #define __STDC_UTF_32__ 1 >> > #define __STDC_IEC_559__ 1 >> > #define __STDC_NO_ATOMICS__ 1 >> > >> > #endif >> > >> > Obviously my Unicode date is older -- I haven't checked which is more >> > correct, but after the next release we should update to latest Unicode >> > anyway. >> >> Sure. >> >> By the way, is there any automation script to update them using the >> Unicode database? I couldn't find that. > > There's an unpolished set of tools that do the job, which I posted the > the mailing list several years back. I should publish them in a more > permanent and accessible place though. > > Also the tools are not entirely sufficient to perform an upgrade. > Adding new case mappings requires some manual work, checking for case > mappings in Unicode that musl doesn't produce and adding the right > table tricks to get them. OK. >> > #if !defined(__GCC_IEC_559) || __GCC_IEC_559 > 0 >> > #define __STDC_IEC_559__ 1 >> > #endif >> > >> > What do you think? Anyone else have thoughts on the matter? >> > >> >> Well, is there any compiler that does not define __GCC_IEC_559 but >> uses stdc-predef.h? > > Even old (pre-4.8) gcc doesn't use stdc-predef.h, but you can add > "-include stdc-predef.h" to its specs file. Presumably you can do > similar tricks with other compilers (via a wrapper script if nothing > else). I see. I don't have any strong opinion against !defined(__GCC_IEC_559) clause and I'm happy with it. I guess that such users are wise enough to define the proper __GCC_IEC_559 value after reviewing the header, though. I'm sorry for the delay. -- Masanori Ogino