diff --git a/0383-SVE-Add-aarch64-constraint.patch b/0383-SVE-Add-aarch64-constraint.patch new file mode 100644 index 0000000000000000000000000000000000000000..7657832d8b5fac73c7e1687efe7519dc5e575b6a --- /dev/null +++ b/0383-SVE-Add-aarch64-constraint.patch @@ -0,0 +1,61 @@ +From ffd6171babb4378383d19163e6828e67a4934f20 Mon Sep 17 00:00:00 2001 +From: blunce +Date: Thu, 29 May 2025 12:58:09 +0800 +Subject: [PATCH] [SVE] Add aarch64 constraint. + +--- + gcc/gimple-ssa-expand-sve.cc | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/gcc/gimple-ssa-expand-sve.cc b/gcc/gimple-ssa-expand-sve.cc +index e8c9e9abf..bd7f88cfa 100644 +--- a/gcc/gimple-ssa-expand-sve.cc ++++ b/gcc/gimple-ssa-expand-sve.cc +@@ -91,6 +91,7 @@ public: + + virtual bool gate (function *fun) override + { ++#ifdef __aarch64__ + if (!flag_find_with_sve) + return false; + +@@ -98,10 +99,14 @@ public: + return false; + + return true; ++#else ++ return false; ++#endif + } + + virtual unsigned int execute (function *fun) override + { ++#ifdef __aarch64__ + TRACE_FUNCTION (fun->decl); + basic_block bb; + FOR_EACH_BB_FN (bb, fun) +@@ -114,11 +119,12 @@ virtual unsigned int execute (function *fun) override + replace_std_find (gsi); + } + } +- ++#endif + return 0; + } + + private: ++#ifdef __aarch64__ + uint8_t bit_width; + const char *null_name = ""; + +@@ -272,6 +278,7 @@ private: + update_stmt (gsi_stmt (gsi)); + TRACE_REPLACE_STMT (gsi_stmt (gsi)); + } ++#endif + }; + } // namespace + +-- +2.28.0.windows.1 + diff --git a/gcc.spec b/gcc.spec index ca4a3b200d1cfcde3e8634197ae440faec7ed924..c00c7d5fe7cbce942887dbea02f371ad196ad58f 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 87 +%global gcc_release 88 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -492,6 +492,7 @@ Patch379: 0379-SVE-Add-container-restriction-for-std-find-with-sve.patch Patch380: 0380-Fix-tune-params-error-in-hip09-and-hip11.patch Patch381: 0381-dfc-Fix-error-in-function-wholeaccess.patch Patch382: 0382-CFGO-Add-more-opts-to-cfgo.patch +Patch383: 0383-SVE-Add-aarch64-constraint.patch # Part 1001-1999 %ifarch sw_64 @@ -1660,6 +1661,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch -P380 -p1 %patch -P381 -p1 %patch -P382 -p1 +%patch -P383 -p1 %ifarch sw_64 %patch -P1001 -p1 @@ -4287,6 +4289,10 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Thu May 29 2025 zhangjingwang - 12.3.1-88 +- Type: Sync +- DESC: Sync patches from openeuler/gcc. + * Wed May 28 2025 liyancheng <412998149@qq.com> - 12.3.1-87 - Type: Sync - DESC: Sync patches from openeuler/gcc.