From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1869 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: C11 api coverage Date: Fri, 7 Sep 2012 17:17:38 -0400 Message-ID: <20120907211738.GT27715@brightrain.aerifal.cx> References: <20120904203837.GX1104@port70.net> <20120905062208.GR27715@brightrain.aerifal.cx> <20120905064010.GY1104@port70.net> <20120907114744.1bf20d03@newbook> 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 1347052512 15819 80.91.229.3 (7 Sep 2012 21:15:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2012 21:15:12 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1870-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 07 23:15:14 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TA5tO-0006gc-Qw for gllmg-musl@plane.gmane.org; Fri, 07 Sep 2012 23:15:10 +0200 Original-Received: (qmail 25783 invoked by uid 550); 7 Sep 2012 21:15:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 25775 invoked from network); 7 Sep 2012 21:15:07 -0000 Content-Disposition: inline In-Reply-To: <20120907114744.1bf20d03@newbook> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1869 Archived-At: On Fri, Sep 07, 2012 at 11:47:44AM -0700, Isaac Dunham wrote: > On Wed, 5 Sep 2012 08:40:10 +0200 > Szabolcs Nagy wrote: > > > > ok i removed annex k symbols > > > > (and updated the c11 coverage table) > Basically, CMPLX*, noreturn, a few types in uchar.h/time.h, and several > optional features. Aside from stdnoreturn.h, noreturn stuff is done. uchar.h and time.h have some nontrivial functions we need to add, I think... > Setting __STDC_NO_{ATOMICS,THREADS}__ should make musl almost fully > conformant... It's impossible for musl to set these; that's up to the compiler, and it would have to be done in the gcc specfile or builtin gcc specs. Of course we can just publish that the command to invoke the C11 compiler is: gcc -std=c11 -D__STDC_NO_ATOMICS__ -D__STDC_NO_THREADS__ However, I'd actually like to get atomics supported soon, at least on GNUC compilers that have the right __builtin or __sync builtins. (Or adapting atomic.h to be a public header, but I think the stuff in stdatomic.h has to be somewhat type-generic, which makes it hard...) Rich