- add gcc12-riscv-inline-atomics.patch,

gcc12-riscv-pthread.patch: handle subword size inline atomics
  (needed by several openSUSE packages)

Rev devel:gcc/66 Md5 3912ce2789cdde6ba7164e5f802e5f58 2022-09-26 11:43:42 rguenther 1006095
This commit is contained in:
OBS User rguenther 2022-09-26 11:43:42 +00:00 committed by Git OBS Bridge
parent 181c49231b
commit 119c595406
35 changed files with 2297 additions and 2 deletions

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -129,6 +129,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -327,6 +331,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -129,6 +129,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -327,6 +331,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -129,6 +129,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -327,6 +331,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -129,6 +129,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -327,6 +331,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -129,6 +129,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -327,6 +331,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -128,6 +128,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -326,6 +330,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -372,7 +372,11 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
Patch18: gcc10-amdgcn-llvm-as.patch Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -1211,6 +1215,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1
@ -1489,7 +1495,7 @@ amdgcn-amdhsa,\
--disable-sjlj-exceptions \ --disable-sjlj-exceptions \
%endif %endif
%if "%{TARGET_ARCH}" == "armv7hl" %if "%{TARGET_ARCH}" == "armv7hl"
--with-cpu=generic-armv7-a \ --with-cpu=generic-armv7-a \
--with-float=hard \ --with-float=hard \
--with-abi=aapcs-linux \ --with-abi=aapcs-linux \
--with-fpu=vfpv3-d16 \ --with-fpu=vfpv3-d16 \

File diff suppressed because it is too large Load Diff

21
gcc12-riscv-pthread.patch Normal file
View File

@ -0,0 +1,21 @@
Index: gcc-12.0.1+git192423/gcc/config/riscv/linux.h
===================================================================
--- gcc-12.0.1+git192423.orig/gcc/config/riscv/linux.h
+++ gcc-12.0.1+git192423/gcc/config/riscv/linux.h
@@ -35,16 +35,6 @@ along with GCC; see the file COPYING3.
#undef MUSL_DYNAMIC_LINKER
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-riscv" XLEN_SPEC MUSL_ABI_SUFFIX ".so.1"
-/* Because RISC-V only has word-sized atomics, it requries libatomic where
- others do not. So link libatomic by default, as needed. */
-#undef LIB_SPEC
-#ifdef LD_AS_NEEDED_OPTION
-#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC \
- " %{pthread:" LD_AS_NEEDED_OPTION " -latomic " LD_NO_AS_NEEDED_OPTION "}"
-#else
-#define LIB_SPEC GNU_USER_TARGET_LIB_SPEC " -latomic "
-#endif
-
#define ICACHE_FLUSH_FUNC "__riscv_flush_icache"
#define CPP_SPEC "%{pthread:-D_REENTRANT}"

View File

@ -389,6 +389,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -524,6 +528,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Sep 26 11:06:06 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add gcc12-riscv-inline-atomics.patch,
gcc12-riscv-pthread.patch: handle subword size inline atomics
(needed by several openSUSE packages)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 31 12:38:20 UTC 2022 - Richard Biener <rguenther@suse.com> Wed Aug 31 12:38:20 UTC 2022 - Richard Biener <rguenther@suse.com>

View File

@ -368,6 +368,10 @@ Patch18: gcc10-amdgcn-llvm-as.patch
Patch19: gcc11-gdwarf-4-default.patch Patch19: gcc11-gdwarf-4-default.patch
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.patch
Patch21: gcc12-fifo-jobserver-support.patch Patch21: gcc12-fifo-jobserver-support.patch
# taken from https://gcc.gnu.org/pipermail/gcc-patches/2022-April/593378.html
Patch22: gcc12-riscv-inline-atomics.patch
# remove libatomics linking
Patch23: gcc12-riscv-pthread.patch
# A set of patches from the RH srpm # A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian # Some patches taken from Debian
@ -2024,6 +2028,8 @@ cd ..
%patch16 %patch16
%patch17 -p1 %patch17 -p1
%patch21 -p1 %patch21 -p1
%patch22 -p1
%patch23 -p1
# These patches are needed only for llvm11 # These patches are needed only for llvm11
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550 %if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
%patch18 -p1 %patch18 -p1