summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-8.3/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch
blob: 0cea228c87bcbd51b97b391dd441eeaee732aa1e (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
58
59
From 1dba090a11c40b0926f9707a543d658c95e1f156 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 29 Mar 2013 09:14:20 +0400
Subject: [PATCH 06/40] gcc: disable MASK_RELAX_PIC_CALLS bit

The new feature added after 4.3.3
"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html"
will cause cc1plus eat up all the system memory when build webkit-gtk.
The function mips_get_pic_call_symbol keeps on recursively calling itself.
Disable this feature to walk aside the bug.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>

Upstream-Status: Inappropriate [configuration]
---
 gcc/configure    | 7 -------
 gcc/configure.ac | 7 -------
 2 files changed, 14 deletions(-)

diff --git a/gcc/configure b/gcc/configure
index 3901722400c..0c9b8ac5f55 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -27553,13 +27553,6 @@ $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6;
         rm -f conftest.*
       fi
     fi
-    if test $gcc_cv_as_ld_jalr_reloc = yes; then
-      if test x$target_cpu_default = x; then
-        target_cpu_default=MASK_RELAX_PIC_CALLS
-      else
-        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
-      fi
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
 
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 1b1362f70fe..53840363115 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4798,13 +4798,6 @@ x:
         rm -f conftest.*
       fi
     fi
-    if test $gcc_cv_as_ld_jalr_reloc = yes; then
-      if test x$target_cpu_default = x; then
-        target_cpu_default=MASK_RELAX_PIC_CALLS
-      else
-        target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
-      fi
-    fi
     AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc)
 
     AC_CACHE_CHECK([linker for .eh_frame personality relaxation],
-- 
2.21.0