diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-16 17:17:24 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-12-20 11:36:08 -0800 |
commit | a8bea675048765a9ac6c03735d61ae5d7e59b25e (patch) | |
tree | 5f0750cf0a21a34dafa46be6457401eddedaede3 /meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | |
parent | e751d1392f92ae9dcbdc5f907ac9457fee0f7c7a (diff) | |
download | openembedded-core-contrib-a8bea675048765a9ac6c03735d61ae5d7e59b25e.tar.gz |
gcc-9.0: Add recipes for upcoming gcc 9.0 release in mid-2019
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch b/meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch new file mode 100644 index 0000000000..f82a50ebe5 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-9.0/0006-gcc-disable-MASK_RELAX_PIC_CALLS-bit.patch @@ -0,0 +1,59 @@ +From eff53fb6f841fce516b51a3364d42ffbe86cef05 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/38] 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 c094db10a2b..fb2c68aef57 100755 +--- a/gcc/configure ++++ b/gcc/configure +@@ -27417,13 +27417,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 910cf2a8d91..f686794da87 100644 +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -4785,13 +4785,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.20.0 + |