Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 28 May 2019 22:58:05
Message-Id: 1559084275.7029bfc24ddf8702d76d2aa88d39790b15c47961.dilfridge@gentoo
1 commit: 7029bfc24ddf8702d76d2aa88d39790b15c47961
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 22:57:21 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 22:57:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7029bfc2
7
8 toolchain.eclass: add riscv compiler abi configuration
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 eclass/toolchain.eclass | 5 +++++
13 1 file changed, 5 insertions(+)
14
15 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
16 index cf6a9533721..3d997fb6581 100644
17 --- a/eclass/toolchain.eclass
18 +++ b/eclass/toolchain.eclass
19 @@ -1213,6 +1213,10 @@ toolchain_src_configure() {
20 is-flagq -mfloat-gprs=double && confgcc+=( --enable-e500-double )
21 [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=( --enable-e500-double )
22 ;;
23 + riscv)
24 + # Add --with-abi flags to set default ABI
25 + confgcc+=( --with-abi=$(gcc-abi-map ${TARGET_DEFAULT_ABI}) )
26 + ;;
27 esac
28
29 # if the target can do biarch (-m32/-m64), enable it. overhead should
30 @@ -1640,6 +1644,7 @@ gcc-abi-map() {
31 local map=()
32 case ${CTARGET} in
33 mips*) map=("o32 32" "n32 n32" "n64 64") ;;
34 + riscv*) map=("lp64d lp64d" "lp64 lp64") ;;
35 x86_64*) map=("amd64 m64" "x86 m32" "x32 mx32") ;;
36 esac