diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-27 09:40:55 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-27 11:45:22 +0200 |
commit | 842086007f9113462e5c4cdfb61fc279d0de17fe (patch) | |
tree | e2db79bf5b625ad0035f37e994e63621bdc761b2 | |
parent | 88b49e2e1fc621b4c05ea53f5a99b351efc37689 (diff) | |
download | OSELAS.Toolchain-842086007f9113462e5c4cdfb61fc279d0de17fe.tar.gz OSELAS.Toolchain-842086007f9113462e5c4cdfb61fc279d0de17fe.tar.xz |
cross-gcc: mips64el: set default ABI to N64
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/gcc-10-20200822/0202-mips64el-set-default-ABI-to-N64.patch | 26 | ||||
-rw-r--r-- | patches/gcc-10-20200822/series | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/patches/gcc-10-20200822/0202-mips64el-set-default-ABI-to-N64.patch b/patches/gcc-10-20200822/0202-mips64el-set-default-ABI-to-N64.patch new file mode 100644 index 0000000..12ae79b --- /dev/null +++ b/patches/gcc-10-20200822/0202-mips64el-set-default-ABI-to-N64.patch @@ -0,0 +1,26 @@ +From: Michael Olbrich <m.olbrich@pengutronix.de> +Date: Thu, 27 Aug 2020 09:20:58 +0200 +Subject: [PATCH] mips64el: set default ABI to N64 + +Otherwise the default would be N32 an building fails. + +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> +--- + gcc/config.gcc | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/gcc/config.gcc b/gcc/config.gcc +index ed9697b9d4c3..601981ae4196 100644 +--- a/gcc/config.gcc ++++ b/gcc/config.gcc +@@ -2532,6 +2532,10 @@ mips*-*-linux*) # Linux MIPS, either endian. + default_mips_arch=mips64r2 + enable_mips_multilibs="yes" + ;; ++ mips64*-*-linux-gnuabi64 | mipsisa64*-*-linux-gnuabi64) ++ default_mips_abi=n64 ++ enable_mips_multilibs="yes" ++ ;; + mips64*-*-linux* | mipsisa64*-*-linux*) + default_mips_abi=n32 + enable_mips_multilibs="yes" diff --git a/patches/gcc-10-20200822/series b/patches/gcc-10-20200822/series index 0dda7c4..f9e8676 100644 --- a/patches/gcc-10-20200822/series +++ b/patches/gcc-10-20200822/series @@ -4,6 +4,7 @@ #tag:OSELAS.toolchain --start-number 200 0200-gcc-i386-use-pure64-CLFS-patch.patch 0201-aarch64-change-paths-for-pure64.patch +0202-mips64el-set-default-ABI-to-N64.patch #tag:gentoo --start-number 300 0300-libstdc-pic.patch -# 7b9b1dffc2b0fd6adb97f59f65bf8172 - git-ptx-patches magic +# 048e3bae7b1987172844d6fd6fe748e5 - git-ptx-patches magic |