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