From 2878121c513448cbb389ab6ccbfcd09b0fd1042f Mon Sep 17 00:00:00 2001 From: blunce Date: Thu, 8 May 2025 18:08:56 +0800 Subject: [PATCH] Fix gcc-cross compile error. --- 0375-SVE-Fix-gcc-cross-compile-error.patch | 28 ++++++++++++++++++++++ gcc.spec | 8 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0375-SVE-Fix-gcc-cross-compile-error.patch diff --git a/0375-SVE-Fix-gcc-cross-compile-error.patch b/0375-SVE-Fix-gcc-cross-compile-error.patch new file mode 100644 index 0000000..6b9734c --- /dev/null +++ b/0375-SVE-Fix-gcc-cross-compile-error.patch @@ -0,0 +1,28 @@ +From 3d8943e2008a2ff0fdd49a967f201d45a2e33210 Mon Sep 17 00:00:00 2001 +From: blunce +Date: Thu, 8 May 2025 17:14:58 +0800 +Subject: [PATCH] [SVE] Fix gcc-cross compile error + +--- + libgcc/config/aarch64/sve_std_find.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/libgcc/config/aarch64/sve_std_find.c b/libgcc/config/aarch64/sve_std_find.c +index 86ff4cb5a..498c5d72d 100644 +--- a/libgcc/config/aarch64/sve_std_find.c ++++ b/libgcc/config/aarch64/sve_std_find.c +@@ -1,3 +1,6 @@ ++#include "auto-target.h" ++ ++#if HAVE_STDINT_H + #include + #include + +@@ -36,3 +39,4 @@ Tail: + } + return last; + } ++#endif +-- +2.28.0.windows.1 + diff --git a/gcc.spec b/gcc.spec index 5fae19a..d68dffc 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 80 +%global gcc_release 81 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -484,6 +484,7 @@ Patch371: 0371-SVE-Fix-std-find-with-sve.patch Patch372: 0372-oeAware-Add-.GCC4OE_oeAware-section-for-optimization.patch Patch373: 0373-Include-insn-opinit.h-in-PLUGIN_H-PR110610.patch Patch374: 0374-Add-hip12-instructions-pipeline.patch +Patch375: 0375-SVE-Fix-gcc-cross-compile-error.patch # Part 1001-1999 %ifarch sw_64 @@ -1644,6 +1645,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch -P372 -p1 %patch -P373 -p1 %patch -P374 -p1 +%patch -P375 -p1 %ifarch sw_64 %patch -P1001 -p1 @@ -4271,6 +4273,10 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Thu May 8 2025 zhangjingwang - 12.3.1-81 +- Type: Bugfix +- DESC: Fix gcc-cross compile error. + * Wed May 7 2025 liyancheng <412998149@qq.com> - 12.3.1-80 - Type: Sync - DESC: Sync patches from openeuler/gcc. -- Gitee