diff --git a/0089-To-resolve-the-SPEC-.548-fluctuation-problem-revert-.patch b/0089-To-resolve-the-SPEC-.548-fluctuation-problem-revert-.patch new file mode 100644 index 0000000000000000000000000000000000000000..836197a002ce53c56a468957311ff735ea8c28d8 --- /dev/null +++ b/0089-To-resolve-the-SPEC-.548-fluctuation-problem-revert-.patch @@ -0,0 +1,26 @@ +From 962eda7f0336c883c52c33a9b61a19f7e80ea9e2 Mon Sep 17 00:00:00 2001 +From: root +Date: Tue, 6 Jun 2023 22:29:03 +0800 +Subject: [PATCH] To resolve the SPEC .548 fluctuation problem, revert GCC + commit 835d50c66aa5bde2f354a6e63a2afa7d2f76a05a + +--- + gcc/config/aarch64/aarch64.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c +index 85dbd3898..116b4b8ca 100644 +--- a/gcc/config/aarch64/aarch64.c ++++ b/gcc/config/aarch64/aarch64.c +@@ -12726,7 +12726,7 @@ cost_plus: + } + + if (GET_MODE_CLASS (mode) == MODE_INT +- && (aarch64_plus_immediate (op1, mode) ++ && ((CONST_INT_P (op1) && aarch64_uimm12_shift (INTVAL (op1))) + || aarch64_sve_addvl_addpl_immediate (op1, mode))) + { + *cost += rtx_cost (op0, mode, PLUS, 0, speed); +-- +2.33.0 + diff --git a/gcc.spec b/gcc.spec index cfcc4373f4b12bc6acc836fa3c283edfa8dbbd4c..8024cc7d662e94c6592d78ae1e25719c3f90daf3 100644 --- a/gcc.spec +++ b/gcc.spec @@ -61,7 +61,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: 22 +Release: 23 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD URL: https://gcc.gnu.org @@ -147,7 +147,6 @@ Patch33: 0033-AutoFdo-Fix-memory-leaks-in-autofdo-and-autoprefetch.patch Patch34: 0034-Backport-sanitizer-Fix-asan-against-glibc-2.34-PR100.patch Patch35: 0035-ccmp-Add-another-optimization-opportunity-for-ccmp-i.patch Patch36: 0036-StructReorg-Refactoring-reorder-fields-to-struct-lay.patch -Patch37: 0037-Backport-loop-invariant-Don-t-move-cold-bb-instructi.patch Patch38: 0038-DFE-Add-Dead-Field-Elimination-in-Struct-Reorg.patch Patch39: 0039-Backport-ipa-sra-Fix-thinko-when-overriding-safe_to_.patch Patch40: 0040-Backport-ifcvt-Allow-constants-for-noce_convert_mult.patch @@ -197,6 +196,7 @@ 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 +Patch89: 0089-To-resolve-the-SPEC-.548-fluctuation-problem-revert-.patch %global gcc_target_platform %{_arch}-linux-gnu @@ -689,7 +689,6 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch34 -p1 %patch35 -p1 %patch36 -p1 -%patch37 -p1 %patch38 -p1 %patch39 -p1 %patch40 -p1 @@ -739,6 +738,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch86 -p1 %patch87 -p1 %patch88 -p1 +%patch89 -p1 %build @@ -2895,3 +2895,9 @@ end - ID:NA - SUG:NA - DESC:Init GCC 10.3.0 repository + +*Tue Jun Zhao Shujian - 10.3.1-23 +- Type:Spec +- ID:NA +- SUG:NA +- DESC: To resolve the spec 548 fluctuation problem, revert GCC commit.