File gcc.patch of Package gcc11
--- org/gcc11.spec 2025-03-20 08:25:15.869458003 +0100
+++ new/gcc11.spec 2025-03-20 08:26:37.091575088 +0100
@@ -187,7 +187,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
-Version: 11.4.1+git2630
+Version: 11.5.0+git3328
Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@@ -202,6 +202,8 @@
BuildRequires: bison
BuildRequires: flex
BuildRequires: gettext-devel
+BuildRequires: gettext-tools
+BuildRequires: glibc-gconv-modules-extra
%if %{suse_version} > 1220
BuildRequires: makeinfo
%else
@@ -360,6 +362,8 @@
Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
+# r12-8060-g5522dec054cb940fe83661b96249aa12c54c1d77
+Patch21: gcc11-pr116029.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
Patch52: gcc10-foffload-default.patch
@@ -1980,7 +1984,7 @@
%setup -q -n gcc-%{version} -a 5
ln -s newlib-4.1.0/newlib .
cd newlib
-%patch100 -p1
+%patch -P 100 -p1
cd ..
%else
%setup -q -n gcc-%{version}
@@ -1988,26 +1992,27 @@
#test patching start
-%patch2
-%patch5
-%patch6
-%patch7
-%patch11
-%patch15
-%patch16
-%patch17 -p1
+%patch -P 2
+%patch -P 5
+%patch -P 6
+%patch -P 7
+%patch -P 11
+%patch -P 15
+%patch -P 16
+%patch -P 17 -p1
%if "%{TARGET_ARCH}" == "amdgcn"
-%patch18 -p1
+%patch -P 18 -p1
%endif
# In SLE15 and earlier default to dwarf4, not dwarf5
%if %{suse_version} < 1550
-%patch19 -p1
+%patch -P 19 -p1
%endif
-%patch20 -p1
-%patch51
-%patch52 -p1
-%patch60 -p1
-%patch61
+%patch -P 20 -p1
+%patch -P 21 -p1
+%patch -P 51
+%patch -P 52 -p1
+%patch -P 60 -p1
+%patch -P 61
#test patching end
@@ -2668,6 +2673,7 @@
rm -f %{buildroot}/%{libsubdir}/include-fixed/pthread.h
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/rseq.h
rm -f %{buildroot}/%{libsubdir}/include-fixed/sys/mount.h
+rm -f %{buildroot}/%{libsubdir}/include-fixed/bits/sched.h
%if !%{enable_plugins}
# no plugins
rm -rf %{buildroot}/%{libsubdir}/plugin