summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-8.2/0013-MIPS64-Default-to-N64-ABI.patch
blob: 8ef8806b2170afee9ea50db66bb4875a275f7f6c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From 0f3629978cd7c98614e87d4fd190b89864221631 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 29 Mar 2013 09:23:08 +0400
Subject: [PATCH 13/39] MIPS64: Default to N64 ABI

MIPS64 defaults to n32 ABI, this patch makes it
so that it defaults to N64 ABI

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Upstream-Status: Inappropriate [OE config specific]
---
 gcc/config.gcc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 8741dd1e3b2..2ffcb39d85f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2137,29 +2137,29 @@ mips*-*-linux*)				# Linux MIPS, either endian.
 			default_mips_arch=mips32
 			;;
 		mips64el-st-linux-gnu)
-			default_mips_abi=n32
+			default_mips_abi=64
 			tm_file="${tm_file} mips/st.h"
 			tmake_file="${tmake_file} mips/t-st"
 			enable_mips_multilibs="yes"
 			;;
 		mips64octeon*-*-linux*)
-			default_mips_abi=n32
+			default_mips_abi=64
 			tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\""
 			target_cpu_default=MASK_SOFT_FLOAT_ABI
 			enable_mips_multilibs="yes"
 			;;
 		mipsisa64r6*-*-linux*)
-			default_mips_abi=n32
+			default_mips_abi=64
 			default_mips_arch=mips64r6
 			enable_mips_multilibs="yes"
 			;;
 		mipsisa64r2*-*-linux*)
-			default_mips_abi=n32
+			default_mips_abi=64
 			default_mips_arch=mips64r2
 			enable_mips_multilibs="yes"
 			;;
 		mips64*-*-linux* | mipsisa64*-*-linux*)
-			default_mips_abi=n32
+			default_mips_abi=64
 			enable_mips_multilibs="yes"
 			;;
 	esac
-- 
2.17.0