diff --git a/0088-Backport-fix-typo-causing-ICE.patch b/0088-Backport-fix-typo-causing-ICE.patch new file mode 100644 index 0000000000000000000000000000000000000000..fea8ac78c9a55927f987cf47a7f2c23b47c5674d --- /dev/null +++ b/0088-Backport-fix-typo-causing-ICE.patch @@ -0,0 +1,25 @@ +From d631be52d401d834261f86113b3a738014540b6c Mon Sep 17 00:00:00 2001 +From: xiongzhou4 +Date: Fri, 30 Dec 2022 20:15:11 +0800 +Subject: [PATCH] Replace *vcond with vcond as we check for NULL pointer. + +--- + gcc/tree-ssa-reassoc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c +index 62e7c8dca..1ad43dba1 100644 +--- a/gcc/tree-ssa-reassoc.c ++++ b/gcc/tree-ssa-reassoc.c +@@ -3839,7 +3839,7 @@ ovce_extract_ops (tree var, gassign **rets, bool *reti, tree *type, + gassign *stmt = dyn_cast (SSA_NAME_DEF_STMT (var)); + if (stmt == NULL) + return ERROR_MARK; +- if (*vcond) ++ if (vcond) + *vcond = stmt; + + /* ??? If we start creating more COND_EXPR, we could perform +-- +2.33.0 + diff --git a/gcc.spec b/gcc.spec index c4852d9db76e7b5c6e64014121834f02bd289677..cfcc4373f4b12bc6acc836fa3c283edfa8dbbd4c 100644 --- a/gcc.spec +++ b/gcc.spec @@ -61,7 +61,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: 21 +Release: 22 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD URL: https://gcc.gnu.org @@ -196,6 +196,7 @@ Patch84: 0084-MULL64-Disable-mull64-transformation-by-default.patch Patch85: 0085-loop-distribution-Bugfix-for-loop-distribution.patch Patch86: 0086-semi-relayout-Bugfix-for-struct-semi-relayout.patch Patch87: 0087-Backport-tree-optimization-97238-fix-typo-causing-IC.patch +Patch88: 0088-Backport-fix-typo-causing-ICE.patch %global gcc_target_platform %{_arch}-linux-gnu @@ -737,6 +738,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch85 -p1 %patch86 -p1 %patch87 -p1 +%patch88 -p1 %build @@ -2760,6 +2762,13 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Sun Apr 23 2023 Xiong Zhou - 10.3.1-22 +- Type:Sync +- ID:NA +- SUG:NA +- DESC:Sync patch from openeuler/gcc + Fix typo in tree-ssa-reassoc.c. + * Sun Mar 19 2023 huangxiaoquan - 10.3.1-21 - Type:enhancement - ID:NA