From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6838 invoked by alias); 13 Jan 2015 00:29:48 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 6716 invoked by uid 89); 13 Jan 2015 00:29:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 13 Jan 2015 00:29:46 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0D0TbuE008982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Jan 2015 19:29:38 -0500 Received: from pike.twiddle.home (vpn-56-3.rdu2.redhat.com [10.10.56.3]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t0D0TZq6015111; Mon, 12 Jan 2015 19:29:36 -0500 Message-ID: <54B466EE.70204@redhat.com> Date: Tue, 13 Jan 2015 00:29:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "H.J. Lu" , Anthony Green , GCC Patches , libffi-discuss@sourceware.org Subject: Re: libffi is broken for x32 References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00011.txt.bz2 On 01/12/2015 03:46 PM, H.J. Lu wrote: > On Mon, Jan 12, 2015 at 2:42 PM, H.J. Lu wrote: >> This libffi commit: >> >> 13e2d7b92557a9511a0414df82bf2df3edc55cba is the first bad commit >> commit 13e2d7b92557a9511a0414df82bf2df3edc55cba >> Author: Anthony Green >> Date: Thu Jan 10 10:52:02 2013 -0500 >> >> Handle both 32 and 64-bit x86 builds regardless of target triple >> >> breaks x32. >> > > This patch passed "make check" in libffi on x32. I am testing > it in GCC now. > > GCC is configured as x86_64-unknown-linux-gnu with x32 > enabled. libffi should set TARGET to X86_64 if __x86_64__ > is defined. I thought the target for that was x86_64-*-linux-gnux32? There's not usually an x32 multilib for "plain" 64-bit, so I wonder how you're configuring? r~