From 9647f3f8db804408a1cbf495f3eb4fbd8a38a006 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 10 Apr 2018 17:49:19 +0200 Subject: [PATCH] 8.0.1-0.21 --- .gitignore | 1 + gcc.spec | 64 ++++++++++++++++++++++++----- gcc8-aarch64-async-unw-tables.patch | 35 ---------------- gcc8-pr85300.patch | 50 ++++++++++++++++++++++ sources | 2 +- 5 files changed, 105 insertions(+), 47 deletions(-) delete mode 100644 gcc8-aarch64-async-unw-tables.patch create mode 100644 gcc8-pr85300.patch diff --git a/.gitignore b/.gitignore index bc8ead2..0fef2de 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ /gcc-8.0.1-20180312.tar.xz /gcc-8.0.1-20180317.tar.xz /gcc-8.0.1-20180324.tar.xz +/gcc-8.0.1-20180410.tar.xz diff --git a/gcc.spec b/gcc.spec index 39e269b..0649748 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1,10 +1,10 @@ -%global DATE 20180324 -%global SVNREV 258832 +%global DATE 20180410 +%global SVNREV 259284 %global gcc_version 8.0.1 %global gcc_major 8 # Note, gcc_release must be integer, if you want to add suffixes to # %%{release}, append them after %%{gcc_release} on Release: line. -%global gcc_release 0.20 +%global gcc_release 0.21 %global nvptx_tools_gitrev c28050f60193b3b95a18866a96f03334e874e78f %global nvptx_newlib_gitrev aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24 %global _unpackaged_files_terminate_build 0 @@ -241,10 +241,10 @@ Patch5: gcc8-libtool-no-rpath.patch Patch6: gcc8-isl-dl.patch Patch7: gcc8-libstdc++-docs.patch Patch8: gcc8-no-add-needed.patch -Patch9: gcc8-aarch64-async-unw-tables.patch -Patch10: gcc8-foffload-default.patch -Patch11: gcc8-Wno-format-security.patch -Patch12: gcc8-rh1512529-aarch64.patch +Patch9: gcc8-foffload-default.patch +Patch10: gcc8-Wno-format-security.patch +Patch11: gcc8-rh1512529-aarch64.patch +Patch12: gcc8-pr85300.patch Patch1000: nvptx-tools-no-ptxas.patch Patch1001: nvptx-tools-build.patch @@ -800,10 +800,10 @@ to NVidia PTX capable devices if available. %patch7 -p0 -b .libstdc++-docs~ %endif %patch8 -p0 -b .no-add-needed~ -%patch9 -p0 -b .aarch64-async-unw-tables~ -%patch10 -p0 -b .foffload-default~ -%patch11 -p0 -b .Wno-format-security~ -%patch12 -p0 -b .rh1512529-aarch64~ +%patch9 -p0 -b .foffload-default~ +%patch10 -p0 -b .Wno-format-security~ +%patch11 -p0 -b .rh1512529-aarch64~ +%patch12 -p0 -b .pr85300~ cd nvptx-tools-%{nvptx_tools_gitrev} %patch1000 -p1 -b .nvptx-tools-no-ptxas~ @@ -3069,6 +3069,48 @@ fi %endif %changelog +* Tue Apr 10 2018 Jakub Jelinek 8.0.1-0.21 +- update from the trunk + - PRs c++/24314, c++/64095, c++/65923, c++/80026, c++/80956, c++/82152, + c++/83808, c++/84221, c++/84269, c++/84606, c++/84632, c++/84665, + c++/84768, c++/84791, c++/84792, c++/84936, c++/84938, c++/84943, + c++/84968, c++/84973, c++/84979, c++/85006, c++/85021, c++/85027, + c++/85028, c++/85049, c++/85060, c++/85061, c++/85062, c++/85067, + c++/85068, c++/85076, c++/85077, c++/85092, c++/85093, c++/85108, + c++/85110, c++/85113, c++/85118, c++/85133, c++/85134, c++/85135, + c++/85136, c++/85140, c++/85141, c++/85146, c++/85147, c++/85148, + c++/85149, c++/85194, c++/85200, c++/85208, c++/85209, c++/85210, + c++/85214, c++/85215, c++/85227, c++/85228, c++/85240, c++/85242, + c++/85256, c++/85262, c++/85264, c++/85277, c++/85279, c++/85285, + c++/85312, c/85094, debug/65821, debug/85252, fortran/42651, + fortran/51260, fortran/66709, fortran/69497, fortran/70068, + fortran/83064, fortran/84924, fortran/85083, fortran/85084, + fortran/85102, fortran/85111, fortran/85130, fortran/85313, gas/22318, + inline-asm/84985, inline-asm/85172, ipa/84947, libfortran/85166, + libfortran/85253, libstdc++/85183, libstdc++/85222, lto/84995, + lto/85078, lto/85176, lto/85248, middle-end/82976, middle-end/84067, + middle-end/85090, middle-end/85180, middle-end/85195, + middle-end/85244, other/84819, other/85161, rtl-optimization/80463, + rtl-optimization/83480, rtl-optimization/83530, + rtl-optimization/83913, rtl-optimization/83962, + rtl-optimization/83972, rtl-optimization/84058, + rtl-optimization/84872, rtl-optimization/84878, + rtl-optimization/85167, sanitizer/85081, sanitizer/85174, + sanitizer/85213, target/80546, target/81863, target/83009, + target/83315, target/83822, target/84041, target/84413, target/84912, + target/84914, target/85044, target/85056, target/85073, target/85095, + target/85100, target/85126, target/85169, target/85173, target/85177, + target/85193, target/85196, target/85203, target/85204, target/85255, + testsuite/82847, testsuite/83462, testsuite/84004, testsuite/85066, + testsuite/85154, testsuite/85189, testsuite/85190, testsuite/85191, + tree-optimization/80021, tree-optimization/82004, + tree-optimization/84005, tree-optimization/84818, + tree-optimization/85063, tree-optimization/85082, + tree-optimization/85156, tree-optimization/85168, + tree-optimization/85257, tree-optimization/85284, + tree-optimization/85286 +- fix combine ICE with -g (PR rtl-optimization/85300) + * Sat Mar 24 2018 Jakub Jelinek 8.0.1-0.20 - update from the trunk - PRs ada/85007, ada/85036, bootstrap/84856, c++/71251, c++/71638, diff --git a/gcc8-aarch64-async-unw-tables.patch b/gcc8-aarch64-async-unw-tables.patch deleted file mode 100644 index feec149..0000000 --- a/gcc8-aarch64-async-unw-tables.patch +++ /dev/null @@ -1,35 +0,0 @@ -2014-04-07 Richard Henderson - - * common/config/aarch64/aarch64-common.c (TARGET_OPTION_INIT_STRUCT): - Define. - (aarch64_option_init_struct): New function. - ---- gcc/common/config/aarch64/aarch64-common.c -+++ gcc/common/config/aarch64/aarch64-common.c -@@ -39,6 +39,9 @@ - #undef TARGET_OPTION_OPTIMIZATION_TABLE - #define TARGET_OPTION_OPTIMIZATION_TABLE aarch_option_optimization_table - -+#undef TARGET_OPTION_INIT_STRUCT -+#define TARGET_OPTION_INIT_STRUCT aarch64_option_init_struct -+ - /* Set default optimization options. */ - static const struct default_options aarch_option_optimization_table[] = - { -@@ -47,6 +50,16 @@ static const struct default_options aarch_option_optimization_table[] = - { OPT_LEVELS_NONE, 0, NULL, 0 } - }; - -+/* Implement TARGET_OPTION_INIT_STRUCT. */ -+ -+static void -+aarch64_option_init_struct (struct gcc_options *opts) -+{ -+ /* By default, always emit DWARF-2 unwind info. This allows debugging -+ without maintaining a stack frame back-chain. */ -+ opts->x_flag_asynchronous_unwind_tables = 1; -+} -+ - /* Implement TARGET_HANDLE_OPTION. - This function handles the target specific options for CPU/target selection. - diff --git a/gcc8-pr85300.patch b/gcc8-pr85300.patch new file mode 100644 index 0000000..ee89033 --- /dev/null +++ b/gcc8-pr85300.patch @@ -0,0 +1,50 @@ +2018-04-10 Jakub Jelinek + + PR rtl-optimization/85300 + * combine.c (subst): Handle subst of CONST_SCALAR_INT_P new_rtx also + into FLOAT and UNSIGNED_FLOAT like ZERO_EXTEND, return a CLOBBER if + simplify_unary_operation fails. + + * gcc.dg/pr85300.c: New test. + +--- gcc/combine.c.jj 2018-04-09 20:15:43.704632013 +0200 ++++ gcc/combine.c 2018-04-10 09:06:25.826606396 +0200 +@@ -5575,11 +5575,15 @@ subst (rtx x, rtx from, rtx to, int in_d + x = gen_rtx_CLOBBER (mode, const0_rtx); + } + else if (CONST_SCALAR_INT_P (new_rtx) +- && GET_CODE (x) == ZERO_EXTEND) ++ && (GET_CODE (x) == ZERO_EXTEND ++ || GET_CODE (x) == FLOAT ++ || GET_CODE (x) == UNSIGNED_FLOAT)) + { +- x = simplify_unary_operation (ZERO_EXTEND, GET_MODE (x), +- new_rtx, GET_MODE (XEXP (x, 0))); +- gcc_assert (x); ++ x = simplify_unary_operation (GET_CODE (x), GET_MODE (x), ++ new_rtx, ++ GET_MODE (XEXP (x, 0))); ++ if (!x) ++ return gen_rtx_CLOBBER (VOIDmode, const0_rtx); + } + else + SUBST (XEXP (x, i), new_rtx); +--- gcc/testsuite/gcc.dg/pr85300.c.jj 2018-04-10 08:53:04.594782804 +0200 ++++ gcc/testsuite/gcc.dg/pr85300.c 2018-04-10 08:53:04.594782804 +0200 +@@ -0,0 +1,16 @@ ++/* PR rtl-optimization/85300 */ ++/* { dg-do compile } */ ++/* { dg-options "-O1 -g -funroll-all-loops -fno-tree-ter -fno-web" } */ ++ ++void ++foo (double x, unsigned char y) ++{ ++ while ((int) x < 1) ++ { ++ float a; ++ ++ a = y | 0x100; ++ y = 0; ++ x = a; ++ } ++} diff --git a/sources b/sources index a6dfbaf..84575f6 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (gcc-8.0.1-20180324.tar.xz) = 2871df4628fcc1501221654b6260fa4c71acf8a64e682f6febeb4e32a1bb48f5d1b9e9d4829d5d56dfa6398d98019568d31021ef5ad19053c5268647f78ae7c5 +SHA512 (gcc-8.0.1-20180410.tar.xz) = 395a62d85fa17b3f0c829172dee8c41b776514acc1bb2694308b8d4acc7553e2eed4a4c071c1e1cb4424e0d4c52fe6e3f7628f32e638edc550b0d96afce5aed9 SHA512 (nvptx-newlib-aadc8eb0ec43b7cd0dd2dfb484bae63c8b05ef24.tar.xz) = 94f7089365296f7dfa485107b4143bebc850a81586f3460fd896bbbb6ba099a00217d4042133424fd2183b352132f4fd367e6a60599bdae2a26dfd48a77d0e04 SHA512 (nvptx-tools-c28050f60193b3b95a18866a96f03334e874e78f.tar.xz) = a688cb12cf805950a5abbb13b52f45c81dbee98e310b7ed57ae20e76dbfa5964a16270148374a6426d177db71909d28360490f091c86a5d19d4faa5127beeee1