From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-mips+bounces-415-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A754C138247 for <garchives@archives.gentoo.org>; Sun, 29 Dec 2013 21:51:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FC7EE0ACB; Sun, 29 Dec 2013 21:51:11 +0000 (UTC) Received: from virtual.dyc.edu (mail.virtual.dyc.edu [67.222.116.22]) by pigeon.gentoo.org (Postfix) with ESMTP id A7A96E0ACB for <gentoo-mips@lists.gentoo.org>; Sun, 29 Dec 2013 21:51:10 +0000 (UTC) Received: from [192.168.3.7] (cpe-74-77-145-97.buffalo.res.rr.com [74.77.145.97]) by virtual.dyc.edu (Postfix) with ESMTPSA id E72ED7E0098 for <gentoo-mips@lists.gentoo.org>; Sun, 29 Dec 2013 16:51:09 -0500 (EST) Message-ID: <52C09985.9000709@opensource.dyc.edu> Date: Sun, 29 Dec 2013 16:52:05 -0500 From: "Anthony G. Basile" <basile@opensource.dyc.edu> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 Precedence: bulk List-Post: <mailto:gentoo-mips@lists.gentoo.org> List-Help: <mailto:gentoo-mips+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-mips+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-mips+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-mips.gentoo.org> X-BeenThere: gentoo-mips@lists.gentoo.org Reply-to: gentoo-mips@lists.gentoo.org MIME-Version: 1.0 To: gentoo-mips@lists.gentoo.org Subject: Re: [gentoo-mips] Re: On MIPS using the same CHOST for all multilib ABIs References: <20131228235839.5bb0305a@gentoo.org> <52C096B8.1020302@gentoo.org> <20131229224806.66137df9@gentoo.org> <52C098C8.4000601@gentoo.org> In-Reply-To: <52C098C8.4000601@gentoo.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 0e7b31cc-d2ab-46b8-a3bc-8b1deeb24a15 X-Archives-Hash: ec2b43ecaf9c17c444ebd97a90170c0b On 12/29/2013 04:48 PM, Markos Chandras wrote: > On 12/29/2013 09:48 PM, Michał Górny wrote: >> Dnia 2013-12-29, o godz. 16:40:08 >> Joshua Kinard <kumba@gentoo.org> napisał(a): >> >>> On 12/28/2013 5:58 PM, Michał Górny wrote: >>>> I've noticed today that mips uses the same CHOST value for all three >>>> ABIs it supports: >>>> >>>> arch/mips/mips64/multilib/make.defaults:CHOST_o32="${CHOST}" >>>> arch/mips/mips64/multilib/make.defaults:CHOST_n32=${CHOST} >>>> arch/mips/mips64/multilib/make.defaults:CHOST_n64=${CHOST} >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_o32="${CHOST}" >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_n32="${CHOST}" >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_n64="${CHOST}" >>>> >>>> [...] >>> >>> Matt can probably vouch for this better, but the only two ABIs affected by >>> this are n32 and n64. mips[el]-unknown-linux-gnu implies a 32-bit >>> big/little endian CHOST, which means the o32 ABI. >>> mips64[el]-unknown-linux-gnu means either n32 or n64. So no change should >>> be needed for o32-based installs. >> >> Just to be clear: >> >> profiles/arch/mips/mipsel/mips64el/multilib/make.defaults: >> >> CHOST="mips64el-unknown-linux-gnu" >> >> [...] >> >> CFLAGS_o32="-mabi=32" >> CHOST_o32="${CHOST}" >> >> CFLAGS_n32="-mabi=n32" >> CHOST_n32="${CHOST}" >> >> CFLAGS_n64="-mabi=64" >> CHOST_n64="${CHOST}" >> >> So in this case, o32 actually uses mips64el-unknown-linux-gnu, unless >> I'm missing something. >> > > Yes all 3 ABIs use the same tuple. > I think people are missing Mike's point from earlier, which is that tuples label toolchains and a toolchain can support multiple abis. So for example, what would one do on a system which simultaneously has o32, n32 and n64? -gnuabi32n32n64 looks pretty crazy. -- Anthony G. Basile, Ph. D. Chair of Information Technology D'Youville College Buffalo, NY 14201 (716) 829-8197