Accepting request 1061993 from devel:gcc

- Add support for new front-ends Rust and Modula-2.
- Align _multibuild order with gcc12 package.
- Bump to ca8fb0096713a8477614ef874f16ba5bf16c48bc, git5428.

- Add bootstrap conditional to allow --without=bootstrap to be
  specified to speed up local builds for testing.

- Bump included newlib to version 4.3.0. 

- Update to GCC trunk head (r13-5254-g05b9868b182bb9) 
  * pulls Go frontend fix to fix build fail on s390x
  * pulls upstream fix for PR107678, obsoleting gcc13-pr107678.patch
- Also package libhwasan_preinit.o on aarch64.

OBS-URL: https://build.opensuse.org/request/show/1061993
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc13?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2023-02-01 15:38:21 +00:00 committed by Git OBS Bridge
commit 3ab58bd4dc
41 changed files with 1211 additions and 289 deletions

View File

@ -7,6 +7,8 @@
<flavor>cross-arm-gcc13</flavor>
<flavor>cross-avr-gcc13-bootstrap</flavor>
<flavor>cross-avr-gcc13</flavor>
<flavor>cross-pru-gcc13-bootstrap</flavor>
<flavor>cross-pru-gcc13</flavor>
<flavor>cross-x86_64-gcc13</flavor>
<flavor>cross-s390x-gcc13</flavor>
<flavor>cross-sparc-gcc13</flavor>
@ -21,8 +23,6 @@
<flavor>cross-arm-none-gcc13</flavor>
<flavor>cross-epiphany-gcc13-bootstrap</flavor>
<flavor>cross-epiphany-gcc13</flavor>
<flavor>cross-pru-gcc13-bootstrap</flavor>
<flavor>cross-pru-gcc13</flavor>
<flavor>cross-riscv64-elf-gcc13-bootstrap</flavor>
<flavor>cross-riscv64-elf-gcc13</flavor>
<flavor>cross-rx-gcc13-bootstrap</flavor>

View File

@ -103,6 +103,7 @@ add_glibc_cross cross-riscv64-gcc$base_ver riscv64 riscv64-suse-linux
add_cross cross-arm-gcc$base_ver arm arm-suse-linux-gnueabi %define gcc_icecream 1
add_cross cross-avr-gcc$base_ver-bootstrap avr avr "%define gcc_libc_bootstrap 1"
add_cross cross-avr-gcc$base_ver avr avr
add_newlib_cross cross-pru-gcc$base_ver pru pru
add_cross cross-x86_64-gcc$base_ver x86_64 x86_64-suse-linux %define gcc_icecream 1
add_cross cross-s390x-gcc$base_ver s390x s390x-suse-linux %define gcc_icecream 1
add_cross cross-sparc-gcc$base_ver sparcv9 sparc-suse-linux %define gcc_icecream 1
@ -115,7 +116,6 @@ add_cross cross-hppa-gcc$base_ver-bootstrap hppa hppa-suse-linux %define gcc_lib
add_cross cross-hppa-gcc$base_ver hppa hppa-suse-linux %define gcc_icecream 1
add_newlib_cross cross-arm-none-gcc$base_ver arm-none arm-none-eabi
add_newlib_cross cross-epiphany-gcc$base_ver epiphany epiphany-elf
add_newlib_cross cross-pru-gcc$base_ver pru pru
#add_newlib_cross cross-nds32le-gcc$base_ver nds32le nds32le-elf
add_newlib_cross cross-riscv64-elf-gcc$base_ver riscv64 riscv64-elf
#add_newlib_cross cross-rl78-gcc$base_ver rl78 rl78-elf

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -38,6 +38,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -102,7 +104,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +118,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -128,7 +130,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -306,7 +307,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -330,7 +331,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -396,6 +396,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -689,10 +695,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -38,6 +38,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -102,7 +104,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +118,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -128,7 +130,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -306,7 +307,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -330,7 +331,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -396,6 +396,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -689,10 +695,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -38,6 +38,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -102,7 +104,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +118,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -128,7 +130,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -306,7 +307,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -330,7 +331,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -396,6 +396,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -689,10 +695,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -38,6 +38,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -102,7 +104,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +118,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -128,7 +130,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -306,7 +307,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -330,7 +331,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -396,6 +396,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -689,10 +695,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -38,6 +38,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -102,7 +104,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +118,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -128,7 +130,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -306,7 +307,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -330,7 +331,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -396,6 +396,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -689,10 +695,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -37,6 +37,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0
@ -101,7 +103,7 @@ Name: %{pkgname}
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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 +117,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -127,7 +129,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -305,7 +306,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -329,7 +330,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -395,6 +395,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -688,10 +694,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif

View File

@ -15,6 +15,8 @@
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%define enable_plugins 0
%define build_jit 0

View File

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

View File

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

View File

@ -28,6 +28,8 @@
%define usrmerged 1
%endif
%bcond_without bootstrap
# Ada currently fails to build on a few platforms, enable it only
# on those that work
%if %{suse_version} >= 1310
@ -69,16 +71,26 @@
%define build_d 0
%endif
%define build_m2 1
%if %{build_objcp}
%define build_cp 1
%define build_objc 1
%endif
%ifarch %ix86 x86_64 aarch64
%define build_rust 1
%else
%define build_rust 0
%endif
# For optional compilers only build C, C++, Fortran, Ada and Go
%if 0%{?build_optional_compiler_languages:1}
%define build_objc 0
%define build_objcp 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%endif
%ifarch x86_64
@ -102,7 +114,7 @@
%define use_lto_bootstrap 0
%ifarch x86_64 ppc64le s390x aarch64
%if %{suse_version} > 1500
%define use_lto_bootstrap 1
%define use_lto_bootstrap %{with bootstrap}
%endif
%endif
@ -142,6 +154,7 @@
%define libgphobos_sover 4
%define libgdruntime_sover 4
%define libgccjit_sover 0
%define libm2_sover 18
# Shared library package suffix
# This is used for the "non-standard" set of libraries, the standard
@ -175,6 +188,7 @@
%define libgphobos_suffix %{plv libgphobos %{libgphobos_sover}}
%define libgdruntime_suffix %{plv libgdruntime %{libgdruntime_sover}}
%define libgccjit_suffix %{plv libgccjit %{libgccjit_sover}}
%define libm2_suffix %{plv libm2 %{libm2_sover}}
# libFOO-devel package suffix
@ -191,7 +205,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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/+/-/')
@ -357,7 +371,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -369,7 +383,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -386,7 +399,8 @@ Core package for the GNU Compiler Collection, including the C language
frontend.
Language frontends other than C are split to different sub-packages,
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++, gcc-go,
gcc-rust and gcc-m2.
@ -1064,6 +1078,134 @@ Requires: libgccjit%{libgccjit_sover}%{libgccjit_suffix}
%description -n libgccjit%{libgccjit_sover}-devel%{libdevel_suffix}
Package contains header files and documentation for GCC JIT front-end.
# PACKAGE-BEGIN
%package rust@variant@
Summary: GNU Rust Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc@base_ver@@variant@ = %{version}-%{release}
Requires: gcc@base_ver@-rust = %{version}-%{release}
%description rust@variant@
This package contains a Rust compiler.
# PACKAGE-END
# PACKAGE-BEGIN
%package m2@variant@
Summary: GNU Modula-2 Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc@base_ver@@variant@ = %{version}-%{release}
Requires: gcc@base_ver@-m2 = %{version}-%{release}
Requires: libm2log%{libm2_sover}@variant@ >= %{version}-%{release}
Requires: libm2cor%{libm2_sover}@variant@ >= %{version}-%{release}
Requires: libm2iso%{libm2_sover}@variant@ >= %{version}-%{release}
Requires: libm2pim%{libm2_sover}@variant@ >= %{version}-%{release}
Requires: libm2min%{libm2_sover}@variant@ >= %{version}-%{release}
%description m2@variant@
This package contains a Modula-2 compiler.
# PACKAGE-END
# PACKAGE-BEGIN
%package -n libm2log%{libm2_sover}%{libm2_suffix}@variant@
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2log%{libm2_sover}@variant@ = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2log%{libm2_sover}@variant@
%description -n libm2log%{libm2_sover}%{libm2_suffix}@variant@
Runtime library for the GNU Modula-2 language.
%post -n libm2log%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
%postun -n libm2log%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
# PACKAGE-END
# PACKAGE-BEGIN
%package -n libm2cor%{libm2_sover}%{libm2_suffix}@variant@
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2cor%{libm2_sover}@variant@ = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2cor%{libm2_sover}@variant@
%description -n libm2cor%{libm2_sover}%{libm2_suffix}@variant@
Runtime library for the GNU Modula-2 language.
%post -n libm2cor%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
%postun -n libm2cor%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
# PACKAGE-END
# PACKAGE-BEGIN
%package -n libm2iso%{libm2_sover}%{libm2_suffix}@variant@
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2iso%{libm2_sover}@variant@ = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2iso%{libm2_sover}@variant@
%description -n libm2iso%{libm2_sover}%{libm2_suffix}@variant@
Runtime library for the GNU Modula-2 language.
%post -n libm2iso%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
%postun -n libm2iso%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
# PACKAGE-END
# PACKAGE-BEGIN
%package -n libm2pim%{libm2_sover}%{libm2_suffix}@variant@
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2pim%{libm2_sover}@variant@ = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2pim%{libm2_sover}@variant@
%description -n libm2pim%{libm2_sover}%{libm2_suffix}@variant@
Runtime library for the GNU Modula-2 language.
%post -n libm2pim%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
%postun -n libm2pim%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
# PACKAGE-END
# PACKAGE-BEGIN
%package -n libm2min%{libm2_sover}%{libm2_suffix}@variant@
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2min%{libm2_sover}@variant@ = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2min%{libm2_sover}@variant@
%description -n libm2min%{libm2_sover}%{libm2_suffix}@variant@
Runtime library for the GNU Modula-2 language.
%post -n libm2min%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
%postun -n libm2min%{libm2_sover}%{libm2_suffix}@variant@ -p /sbin/ldconfig
# PACKAGE-END
%package -n gcc@base_ver@-testresults
# GCC-TESTSUITE-DELETE-END
Summary: Testsuite results
@ -1180,7 +1322,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -1204,7 +1346,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -1270,6 +1411,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -1563,10 +1710,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif
@ -1587,9 +1738,11 @@ amdgcn-amdhsa,\
STAGE1_FLAGS="-g -O2"
%if 0%{?do_profiling} && !0%{?building_testsuite:1}
%ifarch x86_64 %ix86 ppc64le s390x aarch64
%if %{with bootstrap}
%define use_pgo_bootstrap 1
%endif
%endif
%endif
%{?use_pgo_bootstrap:setarch `arch` -R} make %{?make_output_sync} %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
make info
%if 0%{?run_tests:1}
@ -1630,7 +1783,8 @@ for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \
libasan libhwasan libatomic libitm libtsan liblsan libubsan libvtv \
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
libgdruntime libgphobos libstdc++exp; do
libgdruntime libgphobos libstdc++exp \
libm2cor libm2iso libm2log libm2min libm2pim; do
rm -f %{buildroot}/%{versmainlibdir}/$lib.la
%if %{biarch}
rm -f %{buildroot}/%{versmainlibdirbi}/$lib.la
@ -1720,6 +1874,13 @@ for libname in \
%if %{build_gcn}
libgomp-plugin-gcn \
%endif
%if %{build_m2}
libm2log \
libm2cor \
libm2iso \
libm2pim \
libm2min \
%endif
%ifarch %atomic_arch
libatomic \
%endif
@ -2836,6 +2997,98 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc@base_ver@-locale.lang
%{_infodir}/libgccjit.info.gz
%endif
%if %{build_rust}
%files rust
%defattr(-,root,root)
%{_prefix}/bin/gccrs%{binsuffix}
%{libsubdir}/rust1
%endif
%if %{build_m2}
%files m2
%defattr(-,root,root)
%{_prefix}/bin/gm2%{binsuffix}
%{libsubdir}/cc1gm2
%{versmainlibdir}/m2
%versmainlib libm2log.a
%versmainlib libm2log.so
%versmainlib libm2cor.a
%versmainlib libm2cor.so
%versmainlib libm2iso.a
%versmainlib libm2iso.so
%versmainlib libm2pim.a
%versmainlib libm2pim.so
%versmainlib libm2min.a
%versmainlib libm2min.so
%doc %{_mandir}/man1/gm2%{binsuffix}.1.gz
%if %{separate_biarch}
%files m2%{separate_biarch_suffix}
%defattr(-,root,root)
%{versmainlibdirbi}/m2
%versbiarchlib libm2log.a
%versbiarchlib libm2log.so
%versbiarchlib libm2cor.a
%versbiarchlib libm2cor.so
%versbiarchlib libm2iso.a
%versbiarchlib libm2iso.so
%versbiarchlib libm2pim.a
%versbiarchlib libm2pim.so
%versbiarchlib libm2min.a
%versbiarchlib libm2min.so
%endif
%files -n libm2log%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2log.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2log%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2log.so.%{libm2_sover}*
%endif
%files -n libm2cor%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2cor.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2cor%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2cor.so.%{libm2_sover}*
%endif
%files -n libm2iso%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2iso.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2iso%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2iso.so.%{libm2_sover}*
%endif
%files -n libm2pim%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2pim.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2pim%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2pim.so.%{libm2_sover}*
%endif
%files -n libm2min%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2min.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2min%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2min.so.%{libm2_sover}*
%endif
%endif
# GCC-TESTSUITE-DELETE-END
%if 0%{?run_tests:1}

View File

@ -1,113 +0,0 @@
A recent change only initializes the regs.how[] during Dwarf unwinding
which resulted in an uninitialized offset used in return address signing
and random failures during unwinding. The fix is to encode the return
address signing state in REG_UNSAVED and REG_UNDEFINED.
2023-01-10 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
PR target/107678
* unwind-dw2.c (RA_SIGNED_BIT): Remove.
* unwind-dw2-execute_cfa.h: Use REG_UNSAVED/UNDEFINED
to encode return address signing state.
* config/aarch64/aarch64-unwind.h (aarch64_demangle_return_addr)
Check current return address signing state.
(aarch64_frob_update_contex): Remove.
--- libgcc/config/aarch64/aarch64-unwind.h
+++ libgcc/config/aarch64/aarch64-unwind.h
@@ -29,8 +29,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define MD_DEMANGLE_RETURN_ADDR(context, fs, addr) \
aarch64_demangle_return_addr (context, fs, addr)
-#define MD_FROB_UPDATE_CONTEXT(context, fs) \
- aarch64_frob_update_context (context, fs)
static inline int
aarch64_cie_signed_with_b_key (struct _Unwind_Context *context)
@@ -55,42 +53,27 @@ aarch64_cie_signed_with_b_key (struct _Unwind_Context *context)
static inline void *
aarch64_demangle_return_addr (struct _Unwind_Context *context,
- _Unwind_FrameState *fs ATTRIBUTE_UNUSED,
+ _Unwind_FrameState *fs,
_Unwind_Word addr_word)
{
void *addr = (void *)addr_word;
- if (context->flags & RA_SIGNED_BIT)
+ const int reg = DWARF_REGNUM_AARCH64_RA_STATE;
+
+ if (fs->regs.how[reg] == REG_UNSAVED)
+ return addr;
+
+ /* Return-address signing state is toggled by DW_CFA_GNU_window_save (where
+ REG_UNDEFINED means enabled), or set by a DW_CFA_expression. */
+ if (fs->regs.how[reg] == REG_UNDEFINED
+ || (_Unwind_GetGR (context, reg) & 0x1) != 0)
{
_Unwind_Word salt = (_Unwind_Word) context->cfa;
if (aarch64_cie_signed_with_b_key (context) != 0)
return __builtin_aarch64_autib1716 (addr, salt);
return __builtin_aarch64_autia1716 (addr, salt);
}
- else
- return addr;
-}
-
-/* Do AArch64 private initialization on CONTEXT based on frame info FS. Mark
- CONTEXT as return address signed if bit 0 of DWARF_REGNUM_AARCH64_RA_STATE is
- set. */
-
-static inline void
-aarch64_frob_update_context (struct _Unwind_Context *context,
- _Unwind_FrameState *fs)
-{
- const int reg = DWARF_REGNUM_AARCH64_RA_STATE;
- int ra_signed;
- if (fs->regs.how[reg] == REG_UNSAVED)
- ra_signed = fs->regs.reg[reg].loc.offset & 0x1;
- else
- ra_signed = _Unwind_GetGR (context, reg) & 0x1;
- if (ra_signed)
- /* The flag is used for re-authenticating EH handler's address. */
- context->flags |= RA_SIGNED_BIT;
- else
- context->flags &= ~RA_SIGNED_BIT;
- return;
+ return addr;
}
#endif /* defined AARCH64_UNWIND_H && defined __ILP32__ */
--- libgcc/unwind-dw2.c
+++ libgcc/unwind-dw2.c
@@ -137,9 +137,6 @@ struct _Unwind_Context
#define SIGNAL_FRAME_BIT ((~(_Unwind_Word) 0 >> 1) + 1)
/* Context which has version/args_size/by_value fields. */
#define EXTENDED_CONTEXT_BIT ((~(_Unwind_Word) 0 >> 2) + 1)
- /* Bit reserved on AArch64, return address has been signed with A or B
- key. */
-#define RA_SIGNED_BIT ((~(_Unwind_Word) 0 >> 3) + 1)
_Unwind_Word flags;
/* 0 for now, can be increased when further fields are added to
struct _Unwind_Context. */
--- libgcc/unwind-dw2-execute_cfa.h 2023-01-02 17:53:56.003021412 +0100
+++ libgcc/unwind-dw2-execute_cfa.h 2023-01-12 19:52:05.456327742 +0100
@@ -278,10 +278,15 @@
case DW_CFA_GNU_window_save:
#if defined (__aarch64__) && !defined (__ILP32__)
/* This CFA is multiplexed with Sparc. On AArch64 it's used to toggle
- return address signing status. */
+ return address signing status. The REG_UNDEFINED/UNSAVED states
+ mean RA signing is enabled/disabled. */
reg = DWARF_REGNUM_AARCH64_RA_STATE;
- gcc_assert (fs->regs.how[reg] == REG_UNSAVED);
- fs->regs.reg[reg].loc.offset ^= 1;
+ gcc_assert (fs->regs.how[reg] == REG_UNSAVED
+ || fs->regs.how[reg] == REG_UNDEFINED);
+ if (fs->regs.how[reg] == REG_UNSAVED)
+ fs->regs.how[reg] = REG_UNDEFINED;
+ else
+ fs->regs.how[reg] = REG_UNSAVED;
#else
/* ??? Hardcoded for SPARC register window configuration. */
if (__LIBGCC_DWARF_FRAME_REGISTERS__ >= 32)

View File

@ -48,6 +48,8 @@
%define usrmerged 1
%endif
%bcond_without bootstrap
# Ada currently fails to build on a few platforms, enable it only
# on those that work
%if %{suse_version} >= 1310
@ -89,16 +91,26 @@
%define build_d 0
%endif
%define build_m2 1
%if %{build_objcp}
%define build_cp 1
%define build_objc 1
%endif
%ifarch %ix86 x86_64 aarch64
%define build_rust 1
%else
%define build_rust 0
%endif
# For optional compilers only build C, C++, Fortran, Ada and Go
%if 0%{?build_optional_compiler_languages:1}
%define build_objc 0
%define build_objcp 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%endif
%ifarch x86_64
@ -122,7 +134,7 @@
%define use_lto_bootstrap 0
%ifarch x86_64 ppc64le s390x aarch64
%if %{suse_version} > 1500
%define use_lto_bootstrap 1
%define use_lto_bootstrap %{with bootstrap}
%endif
%endif
@ -162,6 +174,7 @@
%define libgphobos_sover 4
%define libgdruntime_sover 4
%define libgccjit_sover 0
%define libm2_sover 18
# Shared library package suffix
# This is used for the "non-standard" set of libraries, the standard
@ -195,6 +208,7 @@
%define libgphobos_suffix %{plv libgphobos %{libgphobos_sover}}
%define libgdruntime_suffix %{plv libgdruntime %{libgdruntime_sover}}
%define libgccjit_suffix %{plv libgccjit %{libgccjit_sover}}
%define libm2_suffix %{plv libm2 %{libm2_sover}}
# libFOO-devel package suffix
%define libdevel_suffix -gcc13
@ -208,7 +222,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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/+/-/')
@ -373,7 +387,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -385,7 +399,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -500,7 +513,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -524,7 +537,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -590,6 +602,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -883,10 +901,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif
@ -904,9 +926,11 @@ amdgcn-amdhsa,\
STAGE1_FLAGS="-g -O2"
%if 0%{?do_profiling} && !0%{?building_testsuite:1}
%ifarch x86_64 %ix86 ppc64le s390x aarch64
%if %{with bootstrap}
%define use_pgo_bootstrap 1
%endif
%endif
%endif
%{?use_pgo_bootstrap:setarch `arch` -R} make %{?make_output_sync} %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
make info
%if 0%{?run_tests:1}

View File

@ -1,3 +1,29 @@
-------------------------------------------------------------------
Fri Jan 27 10:35:15 UTC 2023 - Martin Liška <mliska@suse.cz>
- Add support for new front-ends Rust and Modula-2.
- Align _multibuild order with gcc12 package.
- Bump to ca8fb0096713a8477614ef874f16ba5bf16c48bc, git5428.
-------------------------------------------------------------------
Mon Jan 23 15:19:53 UTC 2023 - Richard Biener <rguenther@suse.com>
- Add bootstrap conditional to allow --without=bootstrap to be
specified to speed up local builds for testing.
-------------------------------------------------------------------
Mon Jan 23 08:45:24 UTC 2023 - Richard Biener <rguenther@suse.com>
- Bump included newlib to version 4.3.0.
-------------------------------------------------------------------
Thu Jan 19 11:34:00 UTC 2023 - Richard Biener <rguenther@suse.com>
- Update to GCC trunk head (r13-5254-g05b9868b182bb9)
* pulls Go frontend fix to fix build fail on s390x
* pulls upstream fix for PR107678, obsoleting gcc13-pr107678.patch
- Also package libhwasan_preinit.o on aarch64.
-------------------------------------------------------------------
Tue Jan 17 09:30:14 UTC 2023 - Richard Biener <rguenther@suse.com>

View File

@ -27,6 +27,8 @@
%define usrmerged 1
%endif
%bcond_without bootstrap
# Ada currently fails to build on a few platforms, enable it only
# on those that work
%if %{suse_version} >= 1310
@ -68,16 +70,26 @@
%define build_d 0
%endif
%define build_m2 1
%if %{build_objcp}
%define build_cp 1
%define build_objc 1
%endif
%ifarch %ix86 x86_64 aarch64
%define build_rust 1
%else
%define build_rust 0
%endif
# For optional compilers only build C, C++, Fortran, Ada and Go
%if 0%{?build_optional_compiler_languages:1}
%define build_objc 0
%define build_objcp 0
%define build_d 0
%define build_rust 0
%define build_m2 0
%endif
%ifarch x86_64
@ -101,7 +113,7 @@
%define use_lto_bootstrap 0
%ifarch x86_64 ppc64le s390x aarch64
%if %{suse_version} > 1500
%define use_lto_bootstrap 1
%define use_lto_bootstrap %{with bootstrap}
%endif
%endif
@ -141,6 +153,7 @@
%define libgphobos_sover 4
%define libgdruntime_sover 4
%define libgccjit_sover 0
%define libm2_sover 18
# Shared library package suffix
# This is used for the "non-standard" set of libraries, the standard
@ -174,6 +187,7 @@
%define libgphobos_suffix %{plv libgphobos %{libgphobos_sover}}
%define libgdruntime_suffix %{plv libgdruntime %{libgdruntime_sover}}
%define libgccjit_suffix %{plv libgccjit %{libgccjit_sover}}
%define libm2_suffix %{plv libm2 %{libm2_sover}}
# libFOO-devel package suffix
%define libdevel_suffix -gcc13
@ -187,7 +201,7 @@
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
URL: https://gcc.gnu.org/
Version: 13.0.1+git5199
Version: 13.0.1+git5428
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/+/-/')
@ -352,7 +366,7 @@ Source1: change_spec
Source2: gcc13-rpmlintrc
Source3: gcc13-testresults-rpmlintrc
Source4: README.First-for.SuSE.packagers
Source5: newlib-4.2.0.20211231.tar.xz
Source5: newlib-4.3.0.20230120.tar.xz
Patch2: gcc-add-defaultsspec.diff
Patch5: tls-no-direct.diff
Patch6: gcc43-no-unwind-tables.diff
@ -364,7 +378,6 @@ 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
Patch21: gcc13-pr107678.patch
# A set of patches from the RH srpm
Patch51: gcc41-ppc32-retaddr.patch
# Some patches taken from Debian
@ -379,7 +392,8 @@ Core package for the GNU Compiler Collection, including the C language
frontend.
Language frontends other than C are split to different sub-packages,
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++ and gcc-go.
namely gcc-ada, gcc-c++, gcc-fortran, gcc-obj, gcc-obj-c++, gcc-go,
gcc-rust and gcc-m2.
%package -n gcc13-32bit
Summary: The GNU C Compiler 32bit support
@ -1892,6 +1906,321 @@ Requires: libgccjit%{libgccjit_sover}%{libgccjit_suffix}
%description -n libgccjit%{libgccjit_sover}-devel%{libdevel_suffix}
Package contains header files and documentation for GCC JIT front-end.
%package rust
Summary: GNU Rust Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13 = %{version}-%{release}
Requires: gcc13-rust = %{version}-%{release}
%description rust
This package contains a Rust compiler.
%package rust-32bit
Summary: GNU Rust Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13-32bit = %{version}-%{release}
Requires: gcc13-rust = %{version}-%{release}
%description rust-32bit
This package contains a Rust compiler.
%package rust-64bit
Summary: GNU Rust Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13-64bit = %{version}-%{release}
Requires: gcc13-rust = %{version}-%{release}
%description rust-64bit
This package contains a Rust compiler.
%package m2
Summary: GNU Modula-2 Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13 = %{version}-%{release}
Requires: gcc13-m2 = %{version}-%{release}
Requires: libm2cor%{libm2_sover} >= %{version}-%{release}
Requires: libm2iso%{libm2_sover} >= %{version}-%{release}
Requires: libm2log%{libm2_sover} >= %{version}-%{release}
Requires: libm2min%{libm2_sover} >= %{version}-%{release}
Requires: libm2pim%{libm2_sover} >= %{version}-%{release}
%description m2
This package contains a Modula-2 compiler.
%package m2-32bit
Summary: GNU Modula-2 Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13-32bit = %{version}-%{release}
Requires: gcc13-m2 = %{version}-%{release}
Requires: libm2cor%{libm2_sover}-32bit >= %{version}-%{release}
Requires: libm2iso%{libm2_sover}-32bit >= %{version}-%{release}
Requires: libm2log%{libm2_sover}-32bit >= %{version}-%{release}
Requires: libm2min%{libm2_sover}-32bit >= %{version}-%{release}
Requires: libm2pim%{libm2_sover}-32bit >= %{version}-%{release}
%description m2-32bit
This package contains a Modula-2 compiler.
%package m2-64bit
Summary: GNU Modula-2 Compiler
License: GPL-3.0-or-later
Group: Development/Languages/Other
Requires: gcc13-64bit = %{version}-%{release}
Requires: gcc13-m2 = %{version}-%{release}
Requires: libm2cor%{libm2_sover}-64bit >= %{version}-%{release}
Requires: libm2iso%{libm2_sover}-64bit >= %{version}-%{release}
Requires: libm2log%{libm2_sover}-64bit >= %{version}-%{release}
Requires: libm2min%{libm2_sover}-64bit >= %{version}-%{release}
Requires: libm2pim%{libm2_sover}-64bit >= %{version}-%{release}
%description m2-64bit
This package contains a Modula-2 compiler.
%package -n libm2log%{libm2_sover}%{libm2_suffix}
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2log%{libm2_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2log%{libm2_sover}
%description -n libm2log%{libm2_sover}%{libm2_suffix}
Runtime library for the GNU Modula-2 language.
%post -n libm2log%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%postun -n libm2log%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%package -n libm2log%{libm2_sover}%{libm2_suffix}-32bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2log%{libm2_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2log%{libm2_sover}-32bit
%description -n libm2log%{libm2_sover}%{libm2_suffix}-32bit
Runtime library for the GNU Modula-2 language.
%post -n libm2log%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%postun -n libm2log%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%package -n libm2log%{libm2_sover}%{libm2_suffix}-64bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2log%{libm2_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2log%{libm2_sover}-64bit
%description -n libm2log%{libm2_sover}%{libm2_suffix}-64bit
Runtime library for the GNU Modula-2 language.
%post -n libm2log%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%postun -n libm2log%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%package -n libm2cor%{libm2_sover}%{libm2_suffix}
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2cor%{libm2_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2cor%{libm2_sover}
%description -n libm2cor%{libm2_sover}%{libm2_suffix}
Runtime library for the GNU Modula-2 language.
%post -n libm2cor%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%postun -n libm2cor%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%package -n libm2cor%{libm2_sover}%{libm2_suffix}-32bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2cor%{libm2_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2cor%{libm2_sover}-32bit
%description -n libm2cor%{libm2_sover}%{libm2_suffix}-32bit
Runtime library for the GNU Modula-2 language.
%post -n libm2cor%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%postun -n libm2cor%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%package -n libm2cor%{libm2_sover}%{libm2_suffix}-64bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2cor%{libm2_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2cor%{libm2_sover}-64bit
%description -n libm2cor%{libm2_sover}%{libm2_suffix}-64bit
Runtime library for the GNU Modula-2 language.
%post -n libm2cor%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%postun -n libm2cor%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%package -n libm2iso%{libm2_sover}%{libm2_suffix}
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2iso%{libm2_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2iso%{libm2_sover}
%description -n libm2iso%{libm2_sover}%{libm2_suffix}
Runtime library for the GNU Modula-2 language.
%post -n libm2iso%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%postun -n libm2iso%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%package -n libm2iso%{libm2_sover}%{libm2_suffix}-32bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2iso%{libm2_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2iso%{libm2_sover}-32bit
%description -n libm2iso%{libm2_sover}%{libm2_suffix}-32bit
Runtime library for the GNU Modula-2 language.
%post -n libm2iso%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%postun -n libm2iso%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%package -n libm2iso%{libm2_sover}%{libm2_suffix}-64bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2iso%{libm2_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2iso%{libm2_sover}-64bit
%description -n libm2iso%{libm2_sover}%{libm2_suffix}-64bit
Runtime library for the GNU Modula-2 language.
%post -n libm2iso%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%postun -n libm2iso%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%package -n libm2pim%{libm2_sover}%{libm2_suffix}
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2pim%{libm2_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2pim%{libm2_sover}
%description -n libm2pim%{libm2_sover}%{libm2_suffix}
Runtime library for the GNU Modula-2 language.
%post -n libm2pim%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%postun -n libm2pim%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%package -n libm2pim%{libm2_sover}%{libm2_suffix}-32bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2pim%{libm2_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2pim%{libm2_sover}-32bit
%description -n libm2pim%{libm2_sover}%{libm2_suffix}-32bit
Runtime library for the GNU Modula-2 language.
%post -n libm2pim%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%postun -n libm2pim%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%package -n libm2pim%{libm2_sover}%{libm2_suffix}-64bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2pim%{libm2_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2pim%{libm2_sover}-64bit
%description -n libm2pim%{libm2_sover}%{libm2_suffix}-64bit
Runtime library for the GNU Modula-2 language.
%post -n libm2pim%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%postun -n libm2pim%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%package -n libm2min%{libm2_sover}%{libm2_suffix}
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2min%{libm2_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2min%{libm2_sover}
%description -n libm2min%{libm2_sover}%{libm2_suffix}
Runtime library for the GNU Modula-2 language.
%post -n libm2min%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%postun -n libm2min%{libm2_sover}%{libm2_suffix} -p /sbin/ldconfig
%package -n libm2min%{libm2_sover}%{libm2_suffix}-32bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2min%{libm2_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2min%{libm2_sover}-32bit
%description -n libm2min%{libm2_sover}%{libm2_suffix}-32bit
Runtime library for the GNU Modula-2 language.
%post -n libm2min%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%postun -n libm2min%{libm2_sover}%{libm2_suffix}-32bit -p /sbin/ldconfig
%package -n libm2min%{libm2_sover}%{libm2_suffix}-64bit
Summary: GNU Modula-2 compiler runtime library
License: BSL-1.0
Group: Development/Languages/Other
Provides: libm2min%{libm2_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
# to co-exist without an overly large list of provides/obsoletes
Conflicts: %selfconflict libm2min%{libm2_sover}-64bit
%description -n libm2min%{libm2_sover}%{libm2_suffix}-64bit
Runtime library for the GNU Modula-2 language.
%post -n libm2min%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%postun -n libm2min%{libm2_sover}%{libm2_suffix}-64bit -p /sbin/ldconfig
%package -n gcc13-testresults
Summary: Testsuite results
License: SUSE-Public-Domain
@ -2001,7 +2330,7 @@ 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.3.0.20230120/newlib .
%else
%setup -q -n gcc-%{version}
%endif
@ -2025,7 +2354,6 @@ ln -s newlib-4.2.0.20211231/newlib .
%if %{suse_version} < 1550
%patch19 -p1
%endif
%patch21 -p0
%patch51
%patch60 -p1
%patch61
@ -2091,6 +2419,12 @@ languages=$languages,d
%if %{build_jit}
languages=$languages,jit
%endif
%if %{build_rust}
languages=$languages,rust
%endif
%if %{build_m2}
languages=$languages,m2
%endif
# In general we want to ship release checking enabled compilers
# which is the default for released compilers
@ -2384,10 +2718,14 @@ amdgcn-amdhsa,\
%if "%{TARGET_ARCH}" == "riscv64"
--disable-multilib \
%endif
%if %{with bootstrap}
%if %{use_lto_bootstrap} && !0%{?building_testsuite:1}
--with-build-config=bootstrap-lto-lean \
--enable-link-mutex \
%endif
%else
--disable-bootstrap \
%endif
%ifarch riscv64
--enable-link-mutex \
%endif
@ -2405,9 +2743,11 @@ amdgcn-amdhsa,\
STAGE1_FLAGS="-g -O2"
%if 0%{?do_profiling} && !0%{?building_testsuite:1}
%ifarch x86_64 %ix86 ppc64le s390x aarch64
%if %{with bootstrap}
%define use_pgo_bootstrap 1
%endif
%endif
%endif
%{?use_pgo_bootstrap:setarch `arch` -R} make %{?make_output_sync} %{?use_pgo_bootstrap:profiledbootstrap} STAGE1_CFLAGS="$STAGE1_FLAGS" BOOT_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
make info
%if 0%{?run_tests:1}
@ -2447,7 +2787,8 @@ for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \
libasan libhwasan libatomic libitm libtsan liblsan libubsan libvtv \
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
libgdruntime libgphobos libstdc++exp; do
libgdruntime libgphobos libstdc++exp \
libm2cor libm2iso libm2log libm2min libm2pim; do
rm -f %{buildroot}/%{versmainlibdir}/$lib.la
%if %{biarch}
rm -f %{buildroot}/%{versmainlibdirbi}/$lib.la
@ -2537,6 +2878,13 @@ for libname in \
%if %{build_gcn}
libgomp-plugin-gcn \
%endif
%if %{build_m2}
libm2log \
libm2cor \
libm2iso \
libm2pim \
libm2min \
%endif
%ifarch %atomic_arch
libatomic \
%endif
@ -3637,6 +3985,98 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc13-locale.lang
%{_infodir}/libgccjit.info.gz
%endif
%if %{build_rust}
%files rust
%defattr(-,root,root)
%{_prefix}/bin/gccrs%{binsuffix}
%{libsubdir}/rust1
%endif
%if %{build_m2}
%files m2
%defattr(-,root,root)
%{_prefix}/bin/gm2%{binsuffix}
%{libsubdir}/cc1gm2
%{versmainlibdir}/m2
%versmainlib libm2log.a
%versmainlib libm2log.so
%versmainlib libm2cor.a
%versmainlib libm2cor.so
%versmainlib libm2iso.a
%versmainlib libm2iso.so
%versmainlib libm2pim.a
%versmainlib libm2pim.so
%versmainlib libm2min.a
%versmainlib libm2min.so
%doc %{_mandir}/man1/gm2%{binsuffix}.1.gz
%if %{separate_biarch}
%files m2%{separate_biarch_suffix}
%defattr(-,root,root)
%{versmainlibdirbi}/m2
%versbiarchlib libm2log.a
%versbiarchlib libm2log.so
%versbiarchlib libm2cor.a
%versbiarchlib libm2cor.so
%versbiarchlib libm2iso.a
%versbiarchlib libm2iso.so
%versbiarchlib libm2pim.a
%versbiarchlib libm2pim.so
%versbiarchlib libm2min.a
%versbiarchlib libm2min.so
%endif
%files -n libm2log%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2log.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2log%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2log.so.%{libm2_sover}*
%endif
%files -n libm2cor%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2cor.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2cor%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2cor.so.%{libm2_sover}*
%endif
%files -n libm2iso%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2iso.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2iso%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2iso.so.%{libm2_sover}*
%endif
%files -n libm2pim%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2pim.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2pim%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2pim.so.%{libm2_sover}*
%endif
%files -n libm2min%{libm2_sover}%{libm2_suffix}
%defattr(-,root,root)
%mainlib libm2min.so.%{libm2_sover}*
%if %{separate_biarch}
%files -n libm2min%{libm2_sover}%{libm2_suffix}%{separate_biarch_suffix}
%defattr(-,root,root)
%biarchlib libm2min.so.%{libm2_sover}*
%endif
%endif
%if 0%{?run_tests:1}
%files -n gcc13-testresults
%defattr(-,root,root)

View File

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

BIN
newlib-4.3.0.20230120.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.