From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/894 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: A little more progress today with clang/LLVM Date: Mon, 21 May 2012 21:59:35 -0400 Message-ID: <20120522015935.GQ163@brightrain.aerifal.cx> References: <6099278.PLLg0Rc9Yf@main.pennware.com> 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: dough.gmane.org 1337652294 11982 80.91.229.3 (22 May 2012 02:04:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 May 2012 02:04:54 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-895-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 22 04:04:54 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 1SWeSz-0007io-0C for gllmg-musl@plane.gmane.org; Tue, 22 May 2012 04:04:53 +0200 Original-Received: (qmail 28085 invoked by uid 550); 22 May 2012 02:04:52 -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 28077 invoked from network); 22 May 2012 02:04:52 -0000 Content-Disposition: inline In-Reply-To: <6099278.PLLg0Rc9Yf@main.pennware.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:894 Archived-At: On Mon, May 21, 2012 at 08:47:04PM -0500, Richard Pennington wrote: > I've decided to keep the musl build scheme with a few minor changes (e.g. > replace libgcc.a with libcompiler-rt.a). > > I'm now building for i386, arm, and x86_64. I enabled clang warnings -Werror > and had to inhibit a few, some of which look like they need some attention. > Here's my current list: > > -Werror -Qunused-arguments -Wno-unneeded-internal-declaration -Wno-cast-align > -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno- > string-plus-int -Wno-pointer-sign -Wno-array-bounds Aside from unused arguments (a bogus warning IMO) and string plus int (why is this a warning?), these sound like they could be issues to address. I cleaned up all the pointer signedness warnings (which should be errors, per the C language) with gcc, so I'm unsure why they're showing up again. Implicit function declarations sound particularly bad, but gcc didn't report any to me. The rest are *probably* non-issues, but I'd like to check them if you could send the warning output to the list. > I think that bits/alltypes.h might need some clang specific tweaking. Can you elaborate? > I'm going to start looking at the mips, ppc, and microblaze bits now, and will > look at warning elimination after. I'll be happy to look at it for you. :) Rich