summaryrefslogtreecommitdiffstats
path: root/patches/gcc-11-20210515/0202-mips64el-set-default-ABI-to-N64.patch
blob: 0e4dee717ee6d8f7f783d28a82a2d61873c5a551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 357b0bed0673..f73c656e1a41 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2587,6 +2587,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"