diff --git a/0104-Add-Crc32-Optimization-in-Gzip-For-crc32-algorithm-i.patch b/0104-Add-Crc32-Optimization-in-Gzip-For-crc32-algorithm-i.patch index 6fb0cef7ac11ea7483c88f6e86c2936dd0dac366..beeaedd2301c7f3ed748d7238f1f45dffc345132 100644 --- a/0104-Add-Crc32-Optimization-in-Gzip-For-crc32-algorithm-i.patch +++ b/0104-Add-Crc32-Optimization-in-Gzip-For-crc32-algorithm-i.patch @@ -28,8 +28,8 @@ Node: The cpu you use needs to support the crc32 instructions .../tree-ssa/loop-crc-table-check-fail.c | 114 ++ gcc/timevar.def | 1 + gcc/tree-pass.h | 1 + - gcc/tree-ssa-loop-crc.cc | 1333 +++++++++++++++++ - 19 files changed, 1921 insertions(+), 1 deletion(-) + gcc/tree-ssa-loop-crc.cc | 1337 +++++++++++++++++ + 19 files changed, 1925 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/loop-crc-loop-condition-fail.c create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/loop-crc-loop-form-fail-2.c create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/loop-crc-loop-form-fail.c @@ -825,7 +825,7 @@ new file mode 100644 index 000000000..b9c2f71ca --- /dev/null +++ b/gcc/tree-ssa-loop-crc.cc -@@ -0,0 +1,1333 @@ +@@ -0,0 +1,1337 @@ +/* This pass converts special loops where do CRC algorithms to + simple CRC instructions in AArch64. + Copyright (C) 2023-2023 Free Software Foundation, Inc. @@ -2055,6 +2055,9 @@ index 000000000..b9c2f71ca +static unsigned int +tree_ssa_loop_crc () +{ ++#ifndef TARGET_CRC32 ++ return 0; ++#else + if (TARGET_CRC32 == false) + { + warning (OPT____,"The loop-crc optimization is not working." \ @@ -2097,6 +2100,7 @@ index 000000000..b9c2f71ca + } + } + return todo; ++#endif +} + +/* Loop crc. */ diff --git a/gcc.spec b/gcc.spec index 25f9ef8863d463181a3bb5fd9e6d047269fa54c3..8bce6b339f2354e020ee74e9033dcf92821c5710 100644 --- a/gcc.spec +++ b/gcc.spec @@ -2,7 +2,7 @@ %global gcc_major 12 # 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 32 +%global gcc_release 33 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -3115,6 +3115,11 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Wed Aug 28 2024 YunQiang Su - 12.3.1-33 +- Type: BUGFIX +- DESC: Fix 0104-Add-Crc32-Optimization-in-Gzip-For-crc32-algorithm-i.patch + for RISC-V: TARGET_CRC32 may be undefined. + * Tue Aug 27 2024 liyancheng <412998149@qq.com> - 12.3.1-32 - Type: Revert - DESC: Revert SME to skip some build issues