Compare commits

..

1 Commits

Author SHA1 Message Date
Ludwig Nussel
32ce91b080 FIXME: don't pull in glibc-devel-32bit boo#1204790 2022-10-27 14:11:14 +02:00
40 changed files with 276 additions and 2410 deletions

View File

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -102,7 +102,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -116,7 +116,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -129,15 +129,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -310,7 +308,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -326,8 +327,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -102,7 +102,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -116,7 +116,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -129,15 +129,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -310,7 +308,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -326,8 +327,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -102,7 +102,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -116,7 +116,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -129,15 +129,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -310,7 +308,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -326,8 +327,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -102,7 +102,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -116,7 +116,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -129,15 +129,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -310,7 +308,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -326,8 +327,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -102,7 +102,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -116,7 +116,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -129,15 +129,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -310,7 +308,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -326,8 +327,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -101,7 +101,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -115,7 +115,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -128,15 +128,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# Define the canonical target and host architecture # Define the canonical target and host architecture
# %%gcc_target_arch is supposed to be the full target triple # %%gcc_target_arch is supposed to be the full target triple
@ -309,7 +307,10 @@ only, it is not intended for any other use.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -325,8 +326,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

3
gcc-12.2.1+git416.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cb1b05cb1165be27bdf13b637918af2dcad5600831c16d1e1df54ebd4609fb3b
size 83021860

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b1a53610db6fd9acef64edc86f535a15bd4302a13856c1bf4b8e27add01a728
size 83084456

View File

@ -190,7 +190,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 1 Release: 1
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -360,7 +360,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -372,16 +372,14 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
# GCC-TESTSUITE-DELETE-BEGIN # GCC-TESTSUITE-DELETE-BEGIN
# SRC-COMMON-END # SRC-COMMON-END
@ -1194,7 +1192,10 @@ Results from running the gcc and target library testsuites.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -1210,8 +1211,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +0,0 @@
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

@ -207,7 +207,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -376,7 +376,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -389,15 +389,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
Summary: Testsuite results Summary: Testsuite results
License: SUSE-Public-Domain License: SUSE-Public-Domain
@ -507,7 +505,10 @@ Results from running the gcc and target library testsuites.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -523,8 +524,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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,21 +1,3 @@
-------------------------------------------------------------------
Thu Oct 20 08:20:31 UTC 2022 - Richard Biener <rguenther@suse.com>
- Update to gcc-12 branch head, 0aaef83351473e8f4eb774f8f99, git537
-------------------------------------------------------------------
Thu Oct 13 09:59:52 UTC 2022 - Richard Biener <rguenther@suse.com>
- Update embedded newlib to version 4.2.0
* includes newlib-4.1.0-aligned_alloc.patch
-------------------------------------------------------------------
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

@ -186,7 +186,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64 %define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/ URL: https://gcc.gnu.org/
Version: 12.2.1+git537 Version: 12.2.1+git416
Release: 0 Release: 0
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1) %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/+/-/') %define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
@ -208,7 +208,9 @@ BuildRequires: texinfo
%endif %endif
# until here, but at least renaming and patching info files breaks this # until here, but at least renaming and patching info files breaks this
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%if 0%{!?disable_32bit:1}
BuildRequires: glibc-devel-32bit BuildRequires: glibc-devel-32bit
%endif
BuildRequires: mpc-devel BuildRequires: mpc-devel
BuildRequires: mpfr-devel BuildRequires: mpfr-devel
BuildRequires: perl BuildRequires: perl
@ -355,7 +357,7 @@ Source1: change_spec
Source2: gcc12-rpmlintrc Source2: gcc12-rpmlintrc
Source3: gcc12-testresults-rpmlintrc Source3: gcc12-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz Source5: newlib-4.1.0.tar.xz
Patch2: gcc-add-defaultsspec.diff Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff Patch6: gcc43-no-unwind-tables.diff
@ -368,15 +370,13 @@ 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
Patch60: gcc44-textdomain.patch Patch60: gcc44-textdomain.patch
Patch61: gcc44-rename-info-files.patch Patch61: gcc44-rename-info-files.patch
# Patches for embedded newlib
Patch100: newlib-4.1.0-aligned_alloc.patch
License: GPL-3.0-or-later License: GPL-3.0-or-later
Summary: The GNU C Compiler and Support Files Summary: The GNU C Compiler and Support Files
@ -2007,7 +2007,10 @@ Results from running the gcc and target library testsuites.
%prep %prep
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1} %if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
%setup -q -n gcc-%{version} -a 5 %setup -q -n gcc-%{version} -a 5
ln -s newlib-4.2.0.20211231/newlib . ln -s newlib-4.1.0/newlib .
cd newlib
%patch100 -p1
cd ..
%else %else
%setup -q -n gcc-%{version} %setup -q -n gcc-%{version}
%endif %endif
@ -2023,8 +2026,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%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

@ -0,0 +1,10 @@
--- newlib/libc/stdlib/aligned_alloc.c.orig 2021-06-10 12:01:10.692582985 +0200
+++ newlib/libc/stdlib/aligned_alloc.c 2021-06-10 12:01:20.960708060 +0200
@@ -28,6 +28,7 @@
#include <reent.h>
#include <stdlib.h>
+#include <malloc.h>
void *
aligned_alloc (size_t align, size_t size)

3
newlib-4.1.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:181a90099c547a4816537e8b7da25e477370cb99438f8fe7163d077e83e90186
size 5710104

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7b82049dd8fec877427a55a38bfb70cc1c0f7d845e458f31ff5c99ec82763c9
size 5709228