summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch
new file mode 100644
index 0000000000..4f73cc8ecf
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-4.6.0/disable_relax_pic_calls_flag.patch
@@ -0,0 +1,46 @@
1GCC: disable MASK_RELAX_PIC_CALLS bit
2
3The new feature added after 4.3.3
4"http://www.pubbs.net/200909/gcc/94048-patch-add-support-for-rmipsjalr.html"
5will cause cc1plus eat up all the system memory when build webkit-gtk.
6The function mips_get_pic_call_symbol keeps on recursively calling itself.
7Disable this feature to walk aside the bug.
8
9Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
10
11Index: gcc-4.6.0/gcc/configure
12===================================================================
13--- gcc-4.6.0.orig/gcc/configure
14+++ gcc-4.6.0/gcc/configure
15@@ -24887,13 +24887,6 @@ $as_echo_n "checking assembler and linke
16 rm -f conftest.*
17 fi
18 fi
19- if test $gcc_cv_as_ld_jalr_reloc = yes; then
20- if test x$target_cpu_default = x; then
21- target_cpu_default=MASK_RELAX_PIC_CALLS
22- else
23- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24- fi
25- fi
26 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
28
29Index: gcc-4.6.0/gcc/configure.ac
30===================================================================
31--- gcc-4.6.0.orig/gcc/configure.ac
32+++ gcc-4.6.0/gcc/configure.ac
33@@ -3764,13 +3764,6 @@ x:
34 rm -f conftest.*
35 fi
36 fi
37- if test $gcc_cv_as_ld_jalr_reloc = yes; then
38- if test x$target_cpu_default = x; then
39- target_cpu_default=MASK_RELAX_PIC_CALLS
40- else
41- target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
42- fi
43- fi
44 AC_MSG_RESULT($gcc_cv_as_ld_jalr_reloc)
45
46 AC_CACHE_CHECK([linker for .eh_frame personality relaxation],