Gentoo Archives: gentoo-mips

From: "Anthony G. Basile" <basile@××××××××××××××.edu>
To: gentoo-mips@l.g.o
Subject: Re: [gentoo-mips] Re: On MIPS using the same CHOST for all multilib ABIs
Date: Sun, 29 Dec 2013 21:51:13
Message-Id: 52C09985.9000709@opensource.dyc.edu
In Reply to: Re: [gentoo-mips] Re: On MIPS using the same CHOST for all multilib ABIs by Markos Chandras
1 On 12/29/2013 04:48 PM, Markos Chandras wrote:
2 > On 12/29/2013 09:48 PM, Michał Górny wrote:
3 >> Dnia 2013-12-29, o godz. 16:40:08
4 >> Joshua Kinard <kumba@g.o> napisał(a):
5 >>
6 >>> On 12/28/2013 5:58 PM, Michał Górny wrote:
7 >>>> I've noticed today that mips uses the same CHOST value for all three
8 >>>> ABIs it supports:
9 >>>>
10 >>>> arch/mips/mips64/multilib/make.defaults:CHOST_o32="${CHOST}"
11 >>>> arch/mips/mips64/multilib/make.defaults:CHOST_n32=${CHOST}
12 >>>> arch/mips/mips64/multilib/make.defaults:CHOST_n64=${CHOST}
13 >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_o32="${CHOST}"
14 >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_n32="${CHOST}"
15 >>>> arch/mips/mipsel/mips64el/multilib/make.defaults:CHOST_n64="${CHOST}"
16 >>>>
17 >>>> [...]
18 >>>
19 >>> Matt can probably vouch for this better, but the only two ABIs affected by
20 >>> this are n32 and n64. mips[el]-unknown-linux-gnu implies a 32-bit
21 >>> big/little endian CHOST, which means the o32 ABI.
22 >>> mips64[el]-unknown-linux-gnu means either n32 or n64. So no change should
23 >>> be needed for o32-based installs.
24 >>
25 >> Just to be clear:
26 >>
27 >> profiles/arch/mips/mipsel/mips64el/multilib/make.defaults:
28 >>
29 >> CHOST="mips64el-unknown-linux-gnu"
30 >>
31 >> [...]
32 >>
33 >> CFLAGS_o32="-mabi=32"
34 >> CHOST_o32="${CHOST}"
35 >>
36 >> CFLAGS_n32="-mabi=n32"
37 >> CHOST_n32="${CHOST}"
38 >>
39 >> CFLAGS_n64="-mabi=64"
40 >> CHOST_n64="${CHOST}"
41 >>
42 >> So in this case, o32 actually uses mips64el-unknown-linux-gnu, unless
43 >> I'm missing something.
44 >>
45 >
46 > Yes all 3 ABIs use the same tuple.
47 >
48
49 I think people are missing Mike's point from earlier, which is that
50 tuples label toolchains and a toolchain can support multiple abis. So
51 for example, what would one do on a system which simultaneously has o32,
52 n32 and n64? -gnuabi32n32n64 looks pretty crazy.
53
54 --
55 Anthony G. Basile, Ph. D.
56 Chair of Information Technology
57 D'Youville College
58 Buffalo, NY 14201
59 (716) 829-8197

Replies