From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5829 Path: news.gmane.org!not-for-mail From: u-igbb@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: compiling musl on x86_64 linux with pcc Date: Wed, 13 Aug 2014 16:43:26 +0200 Message-ID: <20140813144326.GM5170@example.net> References: <20140813091843.GD5170@example.net> <20140813123832.GK12888@brightrain.aerifal.cx> <20140813125607.GK5170@example.net> <20140813142332.GN12888@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 1407941036 22199 80.91.229.3 (13 Aug 2014 14:43:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 14:43:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5835-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 13 16:43:50 2014 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 1XHZmG-0008TM-QY for gllmg-musl@plane.gmane.org; Wed, 13 Aug 2014 16:43:48 +0200 Original-Received: (qmail 6043 invoked by uid 550); 13 Aug 2014 14:43:48 -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 6035 invoked from network); 13 Aug 2014 14:43:48 -0000 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received-SPF: none receiver=mailfe09.swip.net; client-ip=95.211.229.158; envelope-from=u-igbb@aetey.se Content-Disposition: inline In-Reply-To: <20140813142332.GN12888@brightrain.aerifal.cx> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:5829 Archived-At: On Wed, Aug 13, 2014 at 10:23:32AM -0400, Rich Felker wrote: > > Indeed, with a change of all "r11" to "%r11" in > > arch/x86_64/syscall_arch.h > > the compilation went through without disabling the separate __syscallN(). > > Just because it compiled doesn't mean it works. Those warnings about > register assignment definitely should be hard errors because the code > will do horribly wrong things if the requested constraints are not > met. I suspected this, did not try to run that code. > I think tcc has a long ways to go... But pcc was working in the past > (at least on 32-bit) and should work. I'll report the progress when I come further. > BTW about the mmap2 preprocessor issue, did you raise that with ppc > developers too? I think it's a bug on their side but I'm not 100% > sure. If the code in musl is not valid C I'll change it, but if it is, > I think we should just wait for pcc to get fixed. Anders wrote: >> __syscall( >> #ifdef SYS_mmap2 >> >> becomes after -E >> >> __syscall(#ifdef SYS_mmap2 .... >Having conditionals inside macro lists is undefined, see 6.10.3 clause 11. >Here I recommend fixing the code instead. I think this means the code should be changed. Regards, Rune