From 2fb95f71425cc1b3cc9424bb2922fd296e4e05bf Mon Sep 17 00:00:00 2001 From: Syrone Wong Date: Fri, 27 Jul 2018 18:32:03 +0800 Subject: [PATCH] toolchain/gcc: update 8.x to 8.2.0 This release fixes LTO link-time performance problems and C++ bug introduced in GCC 8.1 Signed-off-by: Syrone Wong --- toolchain/gcc/Config.version | 2 +- toolchain/gcc/common.mk | 4 ++-- .../patches/{8.1.0 => 8.2.0}/002-case_insensitive.patch | 0 .../gcc/patches/{8.1.0 => 8.2.0}/010-documentation.patch | 0 .../patches/{8.1.0 => 8.2.0}/110-Fix-MIPS-PR-84790.patch | 0 .../gcc/patches/{8.1.0 => 8.2.0}/230-musl_libssp.patch | 0 .../{8.1.0 => 8.2.0}/300-mips_Os_cpu_rtx_cost_model.patch | 0 .../{8.1.0 => 8.2.0}/800-arm_v5te_no_ldrd_strd.patch | 0 .../{8.1.0 => 8.2.0}/810-arm-softfloat-libgcc.patch | 0 .../gcc/patches/{8.1.0 => 8.2.0}/820-libgcc_pic.patch | 0 .../{8.1.0 => 8.2.0}/840-armv4_pass_fix-v4bx_to_ld.patch | 0 .../patches/{8.1.0 => 8.2.0}/850-use_shared_libgcc.patch | 0 .../patches/{8.1.0 => 8.2.0}/851-libgcc_no_compat.patch | 0 .../patches/{8.1.0 => 8.2.0}/870-ppc_no_crtsavres.patch | 2 +- .../gcc/patches/{8.1.0 => 8.2.0}/881-no_tm_section.patch | 0 .../gcc/patches/{8.1.0 => 8.2.0}/900-bad-mips16-crt.patch | 0 .../gcc/patches/{8.1.0 => 8.2.0}/910-mbsd_multi.patch | 8 ++++---- .../{8.1.0 => 8.2.0}/920-specs_nonfatal_getenv.patch | 0 .../{8.1.0 => 8.2.0}/930-fix-mips-noexecstack.patch | 0 .../931-libffi-fix-MIPS-softfloat-build-issue.patch | 0 ...tools-fix-compilation-when-making-cross-compiler.patch | 0 21 files changed, 8 insertions(+), 8 deletions(-) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/002-case_insensitive.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/010-documentation.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/110-Fix-MIPS-PR-84790.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/230-musl_libssp.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/300-mips_Os_cpu_rtx_cost_model.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/800-arm_v5te_no_ldrd_strd.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/810-arm-softfloat-libgcc.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/820-libgcc_pic.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/840-armv4_pass_fix-v4bx_to_ld.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/850-use_shared_libgcc.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/851-libgcc_no_compat.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/870-ppc_no_crtsavres.patch (84%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/881-no_tm_section.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/900-bad-mips16-crt.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/910-mbsd_multi.patch (95%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/920-specs_nonfatal_getenv.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/930-fix-mips-noexecstack.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/931-libffi-fix-MIPS-softfloat-build-issue.patch (100%) rename toolchain/gcc/patches/{8.1.0 => 8.2.0}/960-gotools-fix-compilation-when-making-cross-compiler.patch (100%) diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version index 6413e85219..55a942660e 100644 --- a/toolchain/gcc/Config.version +++ b/toolchain/gcc/Config.version @@ -19,5 +19,5 @@ config GCC_VERSION string default "5.5.0" if GCC_VERSION_5 default "arc-2017.09-release" if GCC_VERSION_7_1_ARC - default "8.1.0" if GCC_VERSION_8 + default "8.2.0" if GCC_VERSION_8 default "7.3.0" diff --git a/toolchain/gcc/common.mk b/toolchain/gcc/common.mk index 1e17620156..b3e1d8edba 100644 --- a/toolchain/gcc/common.mk +++ b/toolchain/gcc/common.mk @@ -36,8 +36,8 @@ ifeq ($(PKG_VERSION),7.3.0) PKG_HASH:=832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c endif -ifeq ($(PKG_VERSION),8.1.0) - PKG_HASH:=1d1866f992626e61349a1ccd0b8d5253816222cdc13390dcfaa74b093aa2b153 +ifeq ($(PKG_VERSION),8.2.0) + PKG_HASH:=196c3c04ba2613f893283977e6011b2345d1cd1af9abeac58e916b1aab3e0080 endif ifneq ($(CONFIG_GCC_VERSION_7_1_ARC),) diff --git a/toolchain/gcc/patches/8.1.0/002-case_insensitive.patch b/toolchain/gcc/patches/8.2.0/002-case_insensitive.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/002-case_insensitive.patch rename to toolchain/gcc/patches/8.2.0/002-case_insensitive.patch diff --git a/toolchain/gcc/patches/8.1.0/010-documentation.patch b/toolchain/gcc/patches/8.2.0/010-documentation.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/010-documentation.patch rename to toolchain/gcc/patches/8.2.0/010-documentation.patch diff --git a/toolchain/gcc/patches/8.1.0/110-Fix-MIPS-PR-84790.patch b/toolchain/gcc/patches/8.2.0/110-Fix-MIPS-PR-84790.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/110-Fix-MIPS-PR-84790.patch rename to toolchain/gcc/patches/8.2.0/110-Fix-MIPS-PR-84790.patch diff --git a/toolchain/gcc/patches/8.1.0/230-musl_libssp.patch b/toolchain/gcc/patches/8.2.0/230-musl_libssp.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/230-musl_libssp.patch rename to toolchain/gcc/patches/8.2.0/230-musl_libssp.patch diff --git a/toolchain/gcc/patches/8.1.0/300-mips_Os_cpu_rtx_cost_model.patch b/toolchain/gcc/patches/8.2.0/300-mips_Os_cpu_rtx_cost_model.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/300-mips_Os_cpu_rtx_cost_model.patch rename to toolchain/gcc/patches/8.2.0/300-mips_Os_cpu_rtx_cost_model.patch diff --git a/toolchain/gcc/patches/8.1.0/800-arm_v5te_no_ldrd_strd.patch b/toolchain/gcc/patches/8.2.0/800-arm_v5te_no_ldrd_strd.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/800-arm_v5te_no_ldrd_strd.patch rename to toolchain/gcc/patches/8.2.0/800-arm_v5te_no_ldrd_strd.patch diff --git a/toolchain/gcc/patches/8.1.0/810-arm-softfloat-libgcc.patch b/toolchain/gcc/patches/8.2.0/810-arm-softfloat-libgcc.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/810-arm-softfloat-libgcc.patch rename to toolchain/gcc/patches/8.2.0/810-arm-softfloat-libgcc.patch diff --git a/toolchain/gcc/patches/8.1.0/820-libgcc_pic.patch b/toolchain/gcc/patches/8.2.0/820-libgcc_pic.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/820-libgcc_pic.patch rename to toolchain/gcc/patches/8.2.0/820-libgcc_pic.patch diff --git a/toolchain/gcc/patches/8.1.0/840-armv4_pass_fix-v4bx_to_ld.patch b/toolchain/gcc/patches/8.2.0/840-armv4_pass_fix-v4bx_to_ld.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/840-armv4_pass_fix-v4bx_to_ld.patch rename to toolchain/gcc/patches/8.2.0/840-armv4_pass_fix-v4bx_to_ld.patch diff --git a/toolchain/gcc/patches/8.1.0/850-use_shared_libgcc.patch b/toolchain/gcc/patches/8.2.0/850-use_shared_libgcc.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/850-use_shared_libgcc.patch rename to toolchain/gcc/patches/8.2.0/850-use_shared_libgcc.patch diff --git a/toolchain/gcc/patches/8.1.0/851-libgcc_no_compat.patch b/toolchain/gcc/patches/8.2.0/851-libgcc_no_compat.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/851-libgcc_no_compat.patch rename to toolchain/gcc/patches/8.2.0/851-libgcc_no_compat.patch diff --git a/toolchain/gcc/patches/8.1.0/870-ppc_no_crtsavres.patch b/toolchain/gcc/patches/8.2.0/870-ppc_no_crtsavres.patch similarity index 84% rename from toolchain/gcc/patches/8.1.0/870-ppc_no_crtsavres.patch rename to toolchain/gcc/patches/8.2.0/870-ppc_no_crtsavres.patch index a73081493b..ecaf75a476 100644 --- a/toolchain/gcc/patches/8.1.0/870-ppc_no_crtsavres.patch +++ b/toolchain/gcc/patches/8.2.0/870-ppc_no_crtsavres.patch @@ -1,6 +1,6 @@ --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c -@@ -24424,7 +24424,7 @@ rs6000_savres_strategy (rs6000_stack_t * +@@ -24501,7 +24501,7 @@ rs6000_savres_strategy (rs6000_stack_t * /* Define cutoff for using out-of-line functions to save registers. */ if (DEFAULT_ABI == ABI_V4 || TARGET_ELF) { diff --git a/toolchain/gcc/patches/8.1.0/881-no_tm_section.patch b/toolchain/gcc/patches/8.2.0/881-no_tm_section.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/881-no_tm_section.patch rename to toolchain/gcc/patches/8.2.0/881-no_tm_section.patch diff --git a/toolchain/gcc/patches/8.1.0/900-bad-mips16-crt.patch b/toolchain/gcc/patches/8.2.0/900-bad-mips16-crt.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/900-bad-mips16-crt.patch rename to toolchain/gcc/patches/8.2.0/900-bad-mips16-crt.patch diff --git a/toolchain/gcc/patches/8.1.0/910-mbsd_multi.patch b/toolchain/gcc/patches/8.2.0/910-mbsd_multi.patch similarity index 95% rename from toolchain/gcc/patches/8.1.0/910-mbsd_multi.patch rename to toolchain/gcc/patches/8.2.0/910-mbsd_multi.patch index 83d41f2f1a..d9802b6d61 100644 --- a/toolchain/gcc/patches/8.1.0/910-mbsd_multi.patch +++ b/toolchain/gcc/patches/8.2.0/910-mbsd_multi.patch @@ -27,7 +27,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000 static void handle_OPT_d (const char *); static void set_std_cxx98 (int); static void set_std_cxx11 (int); -@@ -461,6 +464,12 @@ c_common_handle_option (size_t scode, co +@@ -459,6 +462,12 @@ c_common_handle_option (size_t scode, co flag_no_builtin = !value; break; @@ -40,7 +40,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000 case OPT_fconstant_string_class_: constant_string_class_name = arg; break; -@@ -1110,6 +1119,47 @@ c_common_init (void) +@@ -1125,6 +1134,47 @@ c_common_init (void) return false; } @@ -102,7 +102,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000 Assume normal C execution environment. --- a/gcc/common.opt +++ b/gcc/common.opt -@@ -1547,6 +1547,9 @@ fguess-branch-probability +@@ -1551,6 +1551,9 @@ fguess-branch-probability Common Report Var(flag_guess_branch_prob) Optimization Enable guessing of branch probabilities. @@ -126,7 +126,7 @@ Date: Tue Jul 31 00:52:27 2007 +0000 opts->x_warn_larger_than = value != -1; --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi -@@ -7005,6 +7005,17 @@ This option is only supported for C and +@@ -7012,6 +7012,17 @@ This option is only supported for C and @option{-Wall} and by @option{-Wpedantic}, which can be disabled with @option{-Wno-pointer-sign}. diff --git a/toolchain/gcc/patches/8.1.0/920-specs_nonfatal_getenv.patch b/toolchain/gcc/patches/8.2.0/920-specs_nonfatal_getenv.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/920-specs_nonfatal_getenv.patch rename to toolchain/gcc/patches/8.2.0/920-specs_nonfatal_getenv.patch diff --git a/toolchain/gcc/patches/8.1.0/930-fix-mips-noexecstack.patch b/toolchain/gcc/patches/8.2.0/930-fix-mips-noexecstack.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/930-fix-mips-noexecstack.patch rename to toolchain/gcc/patches/8.2.0/930-fix-mips-noexecstack.patch diff --git a/toolchain/gcc/patches/8.1.0/931-libffi-fix-MIPS-softfloat-build-issue.patch b/toolchain/gcc/patches/8.2.0/931-libffi-fix-MIPS-softfloat-build-issue.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/931-libffi-fix-MIPS-softfloat-build-issue.patch rename to toolchain/gcc/patches/8.2.0/931-libffi-fix-MIPS-softfloat-build-issue.patch diff --git a/toolchain/gcc/patches/8.1.0/960-gotools-fix-compilation-when-making-cross-compiler.patch b/toolchain/gcc/patches/8.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch similarity index 100% rename from toolchain/gcc/patches/8.1.0/960-gotools-fix-compilation-when-making-cross-compiler.patch rename to toolchain/gcc/patches/8.2.0/960-gotools-fix-compilation-when-making-cross-compiler.patch -- 2.25.1