From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7453 Path: news.gmane.org!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: x86_64 and x32 fail to build Date: Tue, 21 Apr 2015 00:30:03 +0300 (MSK) Message-ID: References: <20150420211359.GS6817@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 1429565417 7249 80.91.229.3 (20 Apr 2015 21:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 21:30:17 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7466-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 20 23:30:16 2015 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 1YkJGh-0007XF-VR for gllmg-musl@m.gmane.org; Mon, 20 Apr 2015 23:30:16 +0200 Original-Received: (qmail 31756 invoked by uid 550); 20 Apr 2015 21:30:14 -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 30714 invoked from network); 20 Apr 2015 21:30:14 -0000 In-Reply-To: <20150420211359.GS6817@brightrain.aerifal.cx> User-Agent: Alpine 2.11 (LNX 23 2013-08-11) Xref: news.gmane.org gmane.linux.lib.musl.general:7453 Archived-At: > 1. Have a global CFLAGS_PREDEF that that gets applied to all tests but > not added to CFLAGS_AUTO. > > 2. Just use -include src/internal/vis.h. > > I kinda like #2 better. Sure, looks better to me too. > > #define CRTJMP(pc,sp) __asm__ __volatile__( \ > > - "mov %1,%%esp ; jmp *%0" : : "r"(pc), "r"(sp) : "memory" ) > > + "mov %1,%%esp ; jmp *%q0" : : "r"(pc), "r"(sp) : "memory" ) > > + "mov %1,%%esp ; jmp *%0" : : "r"((uint64_t)(uintptr_t)pc), "r"(sp) : "memory" ) This works, thanks! Alexander