Compare commits
No commits in common. "factory" and "fix_32bit" have entirely different histories.
2
.lfsconfig
Normal file
2
.lfsconfig
Normal file
@ -0,0 +1,2 @@
|
||||
[lfs]
|
||||
url = http://gitea.opensuse.org:9999/gitlfs
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -102,7 +102,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -116,7 +116,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -128,15 +128,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -191,7 +189,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -254,9 +254,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -309,7 +306,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -324,8 +324,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -694,8 +692,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -890,15 +891,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -102,7 +102,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -116,7 +116,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -128,15 +128,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -191,7 +189,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -254,9 +254,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -309,7 +306,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -324,8 +324,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -694,8 +692,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -890,15 +891,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -102,7 +102,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -116,7 +116,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -128,15 +128,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -191,7 +189,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -254,9 +254,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -309,7 +306,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -324,8 +324,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -694,8 +692,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -890,15 +891,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -102,7 +102,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -116,7 +116,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -128,15 +128,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -191,7 +189,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -254,9 +254,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -309,7 +306,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -324,8 +324,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -694,8 +692,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -890,15 +891,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -102,7 +102,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -116,7 +116,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -128,15 +128,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -191,7 +189,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -254,9 +254,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -309,7 +306,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -324,8 +324,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -694,8 +692,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -890,15 +891,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -101,7 +101,7 @@ Name: %{pkgname}
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -115,7 +115,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -127,15 +127,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
# %%gcc_target_arch is supposed to be the full target triple
|
||||
@ -190,7 +188,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -253,9 +253,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -308,7 +305,10 @@ only, it is not intended for any other use.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -323,8 +323,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -693,8 +691,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
@ -889,15 +890,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
@ -97,7 +97,9 @@ BuildRequires: libzstd-devel
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gettext-devel
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -160,9 +162,6 @@ ExclusiveArch: do-not-build
|
||||
%endif
|
||||
%if 0%{?gcc_icecream:1}%{?gcc_target_glibc:1}%{?gcc_libc_bootstrap:1}
|
||||
ExclusiveArch: i586 ppc64le ppc64 x86_64 s390x aarch64 riscv64
|
||||
%if "%{cross_arch}" == "pru"
|
||||
ExclusiveArch: %arm
|
||||
%endif
|
||||
%endif
|
||||
%define _binary_payload w.ufdio
|
||||
# Obsolete cross-ppc-gcc49 from cross-ppc64-gcc49 which has
|
||||
@ -397,15 +396,15 @@ done
|
||||
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-g++ %{gcc_target_arch}-g++ %{_bindir}/%{gcc_target_arch}-g++%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix} \
|
||||
%if 0%{!?gcc_libc_bootstrap:1}
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov %{gcc_target_arch}-gcov %{_bindir}/%{gcc_target_arch}-gcov%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-dump %{gcc_target_arch}-gcov-dump %{_bindir}/%{gcc_target_arch}-gcov-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcov-tool %{gcc_target_arch}-gcov-tool %{_bindir}/%{gcc_target_arch}-gcov-tool%{binsuffix} \
|
||||
%endif
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ar %{gcc_target_arch}-gcc-ar %{_bindir}/%{gcc_target_arch}-gcc-ar%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-nm %{gcc_target_arch}-gcc-nm %{_bindir}/%{gcc_target_arch}-gcc-nm%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-lto-dump %{gcc_target_arch}-lto-dump %{_bindir}/%{gcc_target_arch}-lto-dump%{binsuffix} \
|
||||
--slave %{_bindir}/%{gcc_target_arch}-gcc-ranlib %{gcc_target_arch}-gcc-ranlib %{_bindir}/%{gcc_target_arch}-gcc-ranlib%{binsuffix}
|
||||
|
||||
%postun
|
||||
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc ] ; then
|
||||
|
3
gcc-12.1.1+git287.tar.xz
Normal file
3
gcc-12.1.1+git287.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:15ab3c01aacd92decf1f27ce230b9880aaceba0178398fe845fc395dfdac66a5
|
||||
size 82957120
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:664732cbd1b65e2496efeef2ac77832a1ae5255e107c7ca3687fae27dd97d57b
|
||||
size 83135352
|
33
gcc.spec.in
33
gcc.spec.in
@ -17,7 +17,7 @@
|
||||
|
||||
# nospeccleaner
|
||||
|
||||
%if 0%{?suse_version} < 1550
|
||||
%if !0%{?usrmerged}
|
||||
%define _slibdir /%{_lib}
|
||||
%define slibdir /lib
|
||||
%define slibdir64 /lib64
|
||||
@ -25,7 +25,6 @@
|
||||
%define _slibdir %{_libdir}
|
||||
%define slibdir %{_prefix}/lib
|
||||
%define slibdir64 %{_prefix}/lib64
|
||||
%define usrmerged 1
|
||||
%endif
|
||||
|
||||
# Ada currently fails to build on a few platforms, enable it only
|
||||
@ -191,7 +190,7 @@
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 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/+/-/')
|
||||
@ -214,7 +213,9 @@ BuildRequires: texinfo
|
||||
%endif
|
||||
# until here, but at least renaming and patching info files breaks this
|
||||
BuildRequires: gcc-c++
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -361,7 +362,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -373,15 +374,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
# Patches for embedded newlib
|
||||
Patch100: newlib-4.1.0-aligned_alloc.patch
|
||||
|
||||
# GCC-TESTSUITE-DELETE-BEGIN
|
||||
# SRC-COMMON-END
|
||||
@ -726,9 +725,11 @@ Summary: GNU Ada Runtime Libraries
|
||||
License: GPL-3.0-or-later WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
Provides: libgnarl-@base_ver@@variant@ = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnarl-@base_ver@@variant@
|
||||
# FIXME: remove %{after} service-format_spec_file is fixed
|
||||
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
|
||||
Conflicts: %selfconflict libgnarl-@base_ver@@variant@%{nil}
|
||||
Provides: libgnat-@base_ver@@variant@ = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnat-@base_ver@@variant@
|
||||
Conflicts: %selfconflict libgnat-@base_ver@@variant@%{nil}
|
||||
|
||||
%description -n libada@base_ver@@variant@
|
||||
This package contains the shared libraries required to run programs
|
||||
@ -1194,7 +1195,10 @@ Results from running the gcc and target library testsuites.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -1209,8 +1213,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -1579,8 +1581,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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}"
|
@ -15,5 +15,4 @@ addFilter ("shlib-legacy-policy-name-error")
|
||||
# Packages provide libgcc_s1 = $version and conflict with other providers
|
||||
# of libgcc_s1
|
||||
addFilter ("conflicts-with-provides")
|
||||
# SLE12 rpmlint complains about valid SPDX licenses
|
||||
addFilter ("invalid-license")
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gcc12-testresults
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
# nospeccleaner
|
||||
|
||||
%if 0%{?suse_version} < 1550
|
||||
%if !0%{?usrmerged}
|
||||
%define _slibdir /%{_lib}
|
||||
%define slibdir /lib
|
||||
%define slibdir64 /lib64
|
||||
@ -45,7 +45,6 @@
|
||||
%define _slibdir %{_libdir}
|
||||
%define slibdir %{_prefix}/lib
|
||||
%define slibdir64 %{_prefix}/lib64
|
||||
%define usrmerged 1
|
||||
%endif
|
||||
|
||||
# Ada currently fails to build on a few platforms, enable it only
|
||||
@ -208,7 +207,7 @@
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -230,7 +229,9 @@ BuildRequires: texinfo
|
||||
%endif
|
||||
# until here, but at least renaming and patching info files breaks this
|
||||
BuildRequires: gcc-c++
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -377,7 +378,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -389,15 +390,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.patch
|
||||
Patch61: gcc44-rename-info-files.patch
|
||||
# Patches for embedded newlib
|
||||
Patch100: newlib-4.1.0-aligned_alloc.patch
|
||||
|
||||
Summary: Testsuite results
|
||||
License: SUSE-Public-Domain
|
||||
@ -507,7 +506,10 @@ Results from running the gcc and target library testsuites.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -522,8 +524,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -892,8 +892,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
|
@ -1,92 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 8 12:58:20 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||
Sat Jul 30 08:45:21 UTC 2022 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- Update to GCC 12.3 release, 0c61aa720e62f1baf0bfd178e283, git1204
|
||||
* includes regression bug fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 29 14:27:43 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Speed up builds with --enable-link-serialization.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 24 11:03:08 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Update to gcc-12 branch head, 193f7e62815b4089dfaed4c2bd3, git749
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 27 10:43:05 UTC 2022 - Ludwig Nussel <lnussel@suse.com>
|
||||
|
||||
- Don't rely on %usrmerged, set it based on standard %suse_version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 22 11:45:17 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Update to gcc-12 branch head, e4b5fec75aa8d0d01f6e042ec28, git696
|
||||
* remove gcc12-fifo-jobserver-support.patch which is now
|
||||
included upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 23 15:21:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- avoid trailing backslashes at the end of post install scripts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- Prune invalid-license rpmlint warnings, the SLE12 codestream
|
||||
doesn't get fixed but FF applies there, too. [bsc#1185337]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 30 10:09:37 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Update to gcc-12 branch head, e927d1cf141f221c5a32574bde0, git416
|
||||
* includes GCC 12.2 release
|
||||
* includes recent fixes backported from trunk
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 29 07:48:00 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Add gcc12-fifo-jobserver-support.patch that adds support
|
||||
for FIFO jobserver for make.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 21 09:31:35 UTC 2022 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||
|
||||
- Allow cross-pru-gcc12-bootstrap for armv7l architecture.
|
||||
PRU architecture is used for real-time MCUs embedded into TI
|
||||
armv7l and aarch64 SoCs. We need to have cross-pru-gcc12 for
|
||||
armv7l in order to build both host applications and PRU firmware
|
||||
during the same build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 12 11:06:04 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
||||
- Update to gcc-12 branch head, 6b7d570a5001bb79e34c0d1626a, git372
|
||||
* includes release candidate for GCC 12.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 8 18:31:18 UTC 2022 - Martin Liška <mliska@suse.cz>
|
||||
|
||||
- Remove workaround for obs-service-format_spec_file.
|
||||
- Remove buildrequires on glibc-devel-32bit if disable_32bit is set
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 26 06:46:45 UTC 2022 - Richard Biener <rguenther@suse.com>
|
||||
|
47
gcc12.spec
47
gcc12.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gcc12
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} < 1550
|
||||
%if !0%{?usrmerged}
|
||||
%define _slibdir /%{_lib}
|
||||
%define slibdir /lib
|
||||
%define slibdir64 /lib64
|
||||
@ -24,7 +24,6 @@
|
||||
%define _slibdir %{_libdir}
|
||||
%define slibdir %{_prefix}/lib
|
||||
%define slibdir64 %{_prefix}/lib64
|
||||
%define usrmerged 1
|
||||
%endif
|
||||
|
||||
# Ada currently fails to build on a few platforms, enable it only
|
||||
@ -187,7 +186,7 @@
|
||||
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
|
||||
|
||||
URL: https://gcc.gnu.org/
|
||||
Version: 12.3.0+git1204
|
||||
Version: 12.1.1+git287
|
||||
Release: 0
|
||||
%define gcc_dir_version %(echo %version | sed 's/+.*//' | cut -d '.' -f 1)
|
||||
%define gcc_snapshot_revision %(echo %version | sed 's/[3-9]\.[0-9]\.[0-6]//' | sed 's/+/-/')
|
||||
@ -209,7 +208,9 @@ BuildRequires: texinfo
|
||||
%endif
|
||||
# until here, but at least renaming and patching info files breaks this
|
||||
BuildRequires: gcc-c++
|
||||
%if 0%{!?disable_32bit:1}
|
||||
BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: mpc-devel
|
||||
BuildRequires: mpfr-devel
|
||||
BuildRequires: perl
|
||||
@ -356,7 +357,7 @@ Source1: change_spec
|
||||
Source2: gcc12-rpmlintrc
|
||||
Source3: gcc12-testresults-rpmlintrc
|
||||
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
|
||||
Patch5: tls-no-direct.diff
|
||||
Patch6: gcc43-no-unwind-tables.diff
|
||||
@ -368,15 +369,13 @@ Patch17: gcc9-reproducible-builds-buildid-for-checksum.patch
|
||||
Patch18: gcc10-amdgcn-llvm-as.patch
|
||||
Patch19: gcc11-gdwarf-4-default.patch
|
||||
Patch20: gcc11-amdgcn-disable-hot-cold-partitioning.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
|
||||
Patch51: gcc41-ppc32-retaddr.patch
|
||||
# Some patches taken from Debian
|
||||
Patch60: gcc44-textdomain.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
|
||||
Summary: The GNU C Compiler and Support Files
|
||||
@ -1019,9 +1018,11 @@ Summary: GNU Ada Runtime Libraries
|
||||
License: GPL-3.0-or-later WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
Provides: libgnarl-12 = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnarl-12
|
||||
# FIXME: remove %{after} service-format_spec_file is fixed
|
||||
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
|
||||
Conflicts: %selfconflict libgnarl-12%{nil}
|
||||
Provides: libgnat-12 = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnat-12
|
||||
Conflicts: %selfconflict libgnat-12%{nil}
|
||||
|
||||
%description -n libada12
|
||||
This package contains the shared libraries required to run programs
|
||||
@ -1040,9 +1041,11 @@ Summary: GNU Ada Runtime Libraries
|
||||
License: GPL-3.0-or-later WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
Provides: libgnarl-12-32bit = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnarl-12-32bit
|
||||
# FIXME: remove %{after} service-format_spec_file is fixed
|
||||
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
|
||||
Conflicts: %selfconflict libgnarl-12-32bit%{nil}
|
||||
Provides: libgnat-12-32bit = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnat-12-32bit
|
||||
Conflicts: %selfconflict libgnat-12-32bit%{nil}
|
||||
|
||||
%description -n libada12-32bit
|
||||
This package contains the shared libraries required to run programs
|
||||
@ -1061,9 +1064,11 @@ Summary: GNU Ada Runtime Libraries
|
||||
License: GPL-3.0-or-later WITH GCC-exception-3.1
|
||||
Group: System/Libraries
|
||||
Provides: libgnarl-12-64bit = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnarl-12-64bit
|
||||
# FIXME: remove %{after} service-format_spec_file is fixed
|
||||
# https://github.com/openSUSE/obs-service-format_spec_file/issues/46
|
||||
Conflicts: %selfconflict libgnarl-12-64bit%{nil}
|
||||
Provides: libgnat-12-64bit = %{version}-%{release}
|
||||
Conflicts: %selfconflict libgnat-12-64bit
|
||||
Conflicts: %selfconflict libgnat-12-64bit%{nil}
|
||||
|
||||
%description -n libada12-64bit
|
||||
This package contains the shared libraries required to run programs
|
||||
@ -2007,7 +2012,10 @@ Results from running the gcc and target library testsuites.
|
||||
%prep
|
||||
%if 0%{?nvptx_newlib:1}%{?amdgcn_newlib:1}
|
||||
%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
|
||||
%setup -q -n gcc-%{version}
|
||||
%endif
|
||||
@ -2022,8 +2030,6 @@ ln -s newlib-4.2.0.20211231/newlib .
|
||||
%patch15
|
||||
%patch16
|
||||
%patch17 -p1
|
||||
%patch22 -p1
|
||||
%patch23 -p1
|
||||
# These patches are needed only for llvm11
|
||||
%if "%{TARGET_ARCH}" == "amdgcn" && %{suse_version} < 1550
|
||||
%patch18 -p1
|
||||
@ -2392,8 +2398,11 @@ amdgcn-amdhsa,\
|
||||
%endif
|
||||
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
|
||||
--with-build-config=bootstrap-lto-lean \
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
%ifarch riscv64
|
||||
--enable-link-mutex \
|
||||
%endif
|
||||
--enable-link-serialization \
|
||||
$CONFARGS \
|
||||
--build=%{GCCDIST} \
|
||||
--host=%{GCCDIST} || \
|
||||
|
10
newlib-4.1.0-aligned_alloc.patch
Normal file
10
newlib-4.1.0-aligned_alloc.patch
Normal 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
3
newlib-4.1.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:181a90099c547a4816537e8b7da25e477370cb99438f8fe7163d077e83e90186
|
||||
size 5710104
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a7b82049dd8fec877427a55a38bfb70cc1c0f7d845e458f31ff5c99ec82763c9
|
||||
size 5709228
|
Loading…
Reference in New Issue
Block a user