summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.9/0015-arm-Use-TARGET_ENDIAN_OPTION-for-determining-MULTILI.patch
blob: 37c46fc2e2d5ac8ec2cfba46e4a4bde13d247f57 (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
From 50e5366005b0f6af27378e2a5c3cb9f9936a7e62 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 29 Mar 2013 08:58:36 +0400
Subject: [PATCH 15/35] arm: Use TARGET_ENDIAN_OPTION for determining
 MULTILIB_DEFAULTS

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

Upstream-Status: Pending
---
 gcc/config/arm/linux-elf.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: gcc-4.9.2/gcc/config/arm/coff.h
===================================================================
--- gcc-4.9.2.orig/gcc/config/arm/coff.h
+++ gcc-4.9.2/gcc/config/arm/coff.h
@@ -32,8 +32,11 @@
 #define TARGET_DEFAULT (MASK_APCS_FRAME)
 
 #ifndef MULTILIB_DEFAULTS
+#ifndef TARGET_ENDIAN_OPTION
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
+#endif
 #define MULTILIB_DEFAULTS \
-  { "marm", "mlittle-endian", "mfloat-abi=soft", "mno-thumb-interwork" }
+  { "marm", TARGET_ENDIAN_OPTION, "mfloat-abi=soft", "mno-thumb-interwork" }
 #endif
 
 /* This is COFF, but prefer stabs.  */
Index: gcc-4.9.2/gcc/config/arm/elf.h
===================================================================
--- gcc-4.9.2.orig/gcc/config/arm/elf.h
+++ gcc-4.9.2/gcc/config/arm/elf.h
@@ -116,8 +116,11 @@
 #endif
 
 #ifndef MULTILIB_DEFAULTS
+#ifndef TARGET_ENDIAN_OPTION
+#define TARGET_ENDIAN_OPTION "mlittle-endian"
+#endif
 #define MULTILIB_DEFAULTS \
-  { "marm", "mlittle-endian", "mfloat-abi=soft", "mno-thumb-interwork", "fno-leading-underscore" }
+  { "marm", TARGET_ENDIAN_OPTION, "mfloat-abi=soft", "mno-thumb-interwork", "fno-leading-underscore" }
 #endif
 
 #define TARGET_ASM_FILE_START_APP_OFF true