From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10090 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH v2] Add stdc-predef.h. Date: Sat, 4 Jun 2016 01:04:02 -0400 Message-ID: <20160604050402.GQ10893@brightrain.aerifal.cx> References: <1459823023-5951-1-git-send-email-masanori.ogino@gmail.com> <20160603190453.GP10893@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1465016660 7085 80.91.229.3 (4 Jun 2016 05:04:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jun 2016 05:04:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10103-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 04 07:04:20 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 1b93kw-0005Wq-74 for gllmg-musl@m.gmane.org; Sat, 04 Jun 2016 07:04:18 +0200 Original-Received: (qmail 12241 invoked by uid 550); 4 Jun 2016 05:04:15 -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 12219 invoked from network); 4 Jun 2016 05:04:15 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10090 Archived-At: 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. > > #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). Rich