diff --git a/.fmf/version b/.fmf/version
deleted file mode 100644
index d00491f..0000000
--- a/.fmf/version
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/.gitignore b/.gitignore
index b67c902..2fb13bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,32 +1,27 @@
-/isl-0.24.tar.bz2
-/nvptx-tools-87ce9dc5999e5fca2e1d3478a30888d9864c9804.tar.xz
-/newlib-cygwin-2e4db338ac125579d555aeee516e48588a628a16.tar.xz
-/gcc-15.0.1-20250201.tar.xz
-/gcc-15.0.1-20250204.tar.xz
-/gcc-15.0.1-20250225.tar.xz
-/gcc-15.0.1-20250301.tar.xz
-/gcc-15.0.1-20250313.tar.xz
-/gcc-15.0.1-20250329.tar.xz
-/gcc-15.0.1-20250410.tar.xz
-/newlib-cygwin-d35cc82b5ec15bb8a5fe0fe11e183d1887992e99.tar.xz
-/gcc-15.0.1-20250417.tar.xz
-/gcc-15.0.1-20250418.tar.xz
-/gcc-15.1.1-20250425.tar.xz
-/gcc-15.1.1-20250521.tar.xz
-/gcc-15.1.1-20250707.tar.xz
-/gcc-15.1.1-20250718.tar.xz
-/gcc-15.1.1-20250719.tar.xz
-/gcc-15.2.1-20250808.tar.xz
-/nvptx-tools-a0c1fff6534a4df9fb17937c3c4a4b1071212029.tar.xz
-/gcc-15.2.1-20250924.tar.xz
-/gcc-15.2.1-20251022.tar.xz
-/gcc-15.2.1-20251111.tar.xz
-/gcc-15.2.1-20251211.tar.xz
-/gcc-16.0.0-20251218.tar.xz
-/gcc-16.0.0-20251220.tar.xz
-/gcc-16.0.0-20260103.tar.xz
-/gcc-16.0.0-20260110.tar.xz
-/gcc-16.0.0-20260112.tar.xz
-/gcc-16.0.1-20260112.tar.xz
-/gcc-16.0.1-20260113.tar.xz
-/gcc-16.0.1-20260115.tar.xz
+/gcc-10.0.1-20200118.tar.xz
+/newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz
+/nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz
+/gcc-10.0.1-20200121.tar.xz
+/gcc-10.0.1-20200123.tar.xz
+/gcc-10.0.1-20200126.tar.xz
+/gcc-10.0.1-20200130.tar.xz
+/gcc-10.0.1-20200216.tar.xz
+/gcc-10.0.1-20200311.tar.xz
+/gcc-10.0.1-20200325.tar.xz
+/gcc-10.0.1-20200328.tar.xz
+/gcc-10.0.1-20200420.tar.xz
+/gcc-10.0.1-20200501.tar.xz
+/gcc-10.1.1-20200507.tar.xz
+/gcc-10.1.1-20200618.tar.xz
+/gcc-10.2.1-20200723.tar.xz
+/gcc-10.2.1-20200804.tar.xz
+/gcc-10.2.1-20200826.tar.xz
+/gcc-10.2.1-20200916.tar.xz
+/gcc-10.2.1-20201005.tar.xz
+/gcc-10.2.1-20201016.tar.xz
+/gcc-10.2.1-20201102.tar.xz
+/gcc-10.2.1-20201112.tar.xz
+/gcc-10.2.1-20201125.tar.xz
+/gcc-10.2.1-20210119.tar.xz
+/gcc-10.2.1-20210130.tar.xz
+/gcc-10.3.1-20210422.tar.xz
diff --git a/gating.yaml b/gating.yaml
deleted file mode 100644
index cb47dc6..0000000
--- a/gating.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
---- !Policy
-product_versions:
- - fedora-*
-decision_context: bodhi_update_push_stable
-subject_type: koji_build
-rules:
- - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
- - !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation}
---- !Policy
-product_versions:
- - rhel-9
-decision_context: osci_compose_gate
-rules:
- - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1-gating.functional}
- - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1-gating-p9.functional}
- - !PassingTestCaseRule {test_case_name: baseos-qe.koji-build.scratch-build.validation}
diff --git a/gcc.spec b/gcc.spec
index 71e5d1d..cd1a0f7 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -1,19 +1,16 @@
-%global DATE 20260115
-%global gitrev 1a9a51aca25eaad91d80869c43859274fe5e1096
-%global gcc_version 16.0.1
-%global gcc_major 16
+%global DATE 20210422
+%global gitrev dc5e381a715a658cfcc08ba3cbaa6bc53adc596f
+%global gcc_version 10.3.1
+%global gcc_major 10
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
-%global gcc_release 0
-%global nvptx_tools_gitrev a0c1fff6534a4df9fb17937c3c4a4b1071212029
-%global newlib_cygwin_gitrev d35cc82b5ec15bb8a5fe0fe11e183d1887992e99
+%global gcc_release 1
+%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
+%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
-%if 0%{?fedora:1}
%global _performance_build 1
# Hardening slows the compiler way too much.
%undefine _hardened_build
-%endif
-%undefine _auto_set_build_flags
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
# Until annobin is fixed (#1519165).
%undefine _annotated_build
@@ -26,13 +23,6 @@
%if 0%{?__brp_strip_lto:1}
%global __brp_strip_lto %{__brp_strip_lto} || :
%endif
-%if 0%{?rhel} > 0
-%define bugurl https://issues.redhat.com
-%else
-%define bugurl https://bugzilla.redhat.com/bugzilla
-%endif
-%{!?dist_bug_report_url: %global dist_bug_report_url %bugurl}
-
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
%global multilib_64_archs sparc64 ppc64 ppc64p7 s390x x86_64
%else
@@ -43,9 +33,6 @@
%global build_objc 0
%global build_go 0
%global build_d 0
-%global build_m2 0
-%global build_cobol 0
-%global build_algol68 0
%else
%ifarch %{ix86} x86_64 ia64 ppc %{power64} alpha s390x %{arm} aarch64 riscv64
%global build_ada 1
@@ -58,49 +45,33 @@
%else
%global build_go 0
%endif
-%ifarch %{ix86} x86_64 %{arm} aarch64 %{mips} s390 s390x riscv64
+%ifarch %{ix86} x86_64 %{arm} %{mips} s390 s390x riscv64
%global build_d 1
%else
%global build_d 0
%endif
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips} riscv64
-%global build_m2 1
-%else
-%global build_m2 0
-%endif
-%ifarch x86_64 aarch64 ppc64le
-%global build_cobol 1
-%else
-%global build_cobol 0
-%endif
-%global build_algol68 1
%endif
%ifarch %{ix86} x86_64 ia64 ppc64le
%global build_libquadmath 1
%else
%global build_libquadmath 0
%endif
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
%global build_libasan 1
%else
%global build_libasan 0
%endif
-%ifarch x86_64 aarch64
-%global build_libhwasan 1
-%else
-%global build_libhwasan 0
-%endif
-%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
+%ifarch x86_64 ppc64 ppc64le aarch64
%global build_libtsan 1
%else
%global build_libtsan 0
%endif
-%ifarch x86_64 ppc64 ppc64le aarch64 s390x riscv64
+%ifarch x86_64 ppc64 ppc64le aarch64
%global build_liblsan 1
%else
%global build_liblsan 0
%endif
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 riscv64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64
%global build_libubsan 1
%else
%global build_libubsan 0
@@ -110,7 +81,7 @@
%else
%global build_libatomic 0
%endif
-%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64 riscv64
+%ifarch %{ix86} x86_64 %{arm} alpha ppc ppc64 ppc64le ppc64p7 s390 s390x aarch64
%global build_libitm 1
%else
%global build_libitm 0
@@ -121,7 +92,7 @@
%global build_isl 1
%endif
%global build_libstdcxx_docs 1
-%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips} riscv64
+%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
%global attr_ifunc 1
%else
%global attr_ifunc 0
@@ -131,11 +102,6 @@
%else
%global build_offload_nvptx 0
%endif
-%ifarch x86_64
-%global build_offload_amdgcn 1
-%else
-%global build_offload_amdgcn 0
-%endif
%if 0%{?fedora} < 32 && 0%{?rhel} < 8
%ifarch s390x
%global multilib_32_arch s390
@@ -150,48 +116,34 @@
%ifarch x86_64
%global multilib_32_arch i686
%endif
-%if 0%{?fedora} >= 36 || 0%{?rhel} >= 10
-%global build_annobin_plugin 1
-%else
-%global build_annobin_plugin 0
-%endif
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
-Release: %{gcc_release}.3%{?dist}
-# License notes for some of the less obvious ones:
-# gcc/doc/cppinternals.texi: Linux-man-pages-copyleft-2-para
-# isl: MIT, BSD-2-Clause
-# libcody: Apache-2.0
-# libphobos/src/etc/c/curl.d: curl
-# All of the remaining license soup is in newlib.
-License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
-# The source for this package was pulled from upstream's vcs.
-# %%{gitrev} is some commit from the
-# https://gcc.gnu.org/git/?p=gcc.git;h=refs/vendors/redhat/heads/gcc-%%{gcc_major}-branch
-# branch. Use the following command to generate the tarball:
-# ./update-gcc.sh %%{gitrev}
-# optionally if say /usr/src/gcc/.git/ is an existing gcc git clone
-# ./update-gcc.sh %%{gitrev} /usr/src/gcc/.git/
-# to speed up the clone operations. Note, %%{gitrev} macro in
-# gcc.spec shouldn't be updated before running the script, the script
-# will update it, fill in some %%changelog details etc.
+Release: %{gcc_release}%{?dist}
+# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
+# GCC Runtime Exception.
+License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
+# The source for this package was pulled from upstream's vcs. Use the
+# following commands to generate the tarball:
+# git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
+# git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin %%{gitrev}
+# git --git-dir=gcc-dir.tmp/.git archive --prefix=%%{name}-%%{version}-%%{DATE}/ %%{gitrev} | xz -9e > %%{name}-%%{version}-%%{DATE}.tar.xz
+# rm -rf gcc-dir.tmp
Source0: gcc-%{version}-%{DATE}.tar.xz
# The source for nvptx-tools package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
-# git clone --depth 1 https://github.com/MentorEmbedded/nvptx-tools.git nvptx-tools-dir.tmp
+# git clone --depth 1 git://github.com/MentorEmbedded/nvptx-tools.git nvptx-tools-dir.tmp
# git --git-dir=nvptx-tools-dir.tmp/.git fetch --depth 1 origin %%{nvptx_tools_gitrev}
# git --git-dir=nvptx-tools-dir.tmp/.git archive --prefix=nvptx-tools-%%{nvptx_tools_gitrev}/ %%{nvptx_tools_gitrev} | xz -9e > nvptx-tools-%%{nvptx_tools_gitrev}.tar.xz
# rm -rf nvptx-tools-dir.tmp
Source1: nvptx-tools-%{nvptx_tools_gitrev}.tar.xz
# The source for nvptx-newlib package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
-# git clone https://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
+# git clone git://sourceware.org/git/newlib-cygwin.git newlib-cygwin-dir.tmp
# git --git-dir=newlib-cygwin-dir.tmp/.git archive --prefix=newlib-cygwin-%%{newlib_cygwin_gitrev}/ %%{newlib_cygwin_gitrev} ":(exclude)newlib/libc/sys/linux/include/rpc/*.[hx]" | xz -9e > newlib-cygwin-%%{newlib_cygwin_gitrev}.tar.xz
# rm -rf newlib-cygwin-dir.tmp
Source2: newlib-cygwin-%{newlib_cygwin_gitrev}.tar.xz
-%global isl_version 0.24
-Source3: https://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
+%global isl_version 0.16.1
URL: http://gcc.gnu.org
# Need binutils with -pie support >= 2.14.90.0.4-4
# Need binutils which can omit dot symbols and overlap .opd on ppc64 >= 2.15.91.0.2-4
@@ -206,8 +158,11 @@ URL: http://gcc.gnu.org
# Need binutils which support -plugin
# Need binutils which support .loc view >= 2.30
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
-# Need binutils which support .base64 >= 2.43
-BuildRequires: binutils >= 2.43
+%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
+BuildRequires: binutils >= 2.31
+%else
+BuildRequires: binutils >= 2.24
+%endif
# While gcc doesn't include statically linked binaries, during testing
# -static is used several times.
BuildRequires: glibc-static
@@ -220,9 +175,6 @@ BuildRequires: gcc, gcc-c++, make
%if %{build_go}
BuildRequires: hostname, procps
%endif
-%if %{build_cobol}
-BuildRequires: libxml2-devel
-%endif
# For VTA guality testing
BuildRequires: gdb
# Make sure pthread.h doesn't contain __thread tokens
@@ -236,30 +188,30 @@ BuildRequires: libzstd-devel
# Make sure glibc supports TFmode long double
BuildRequires: glibc >= 2.3.90-35
%endif
-%ifarch %{multilib_64_archs}
-BuildRequires: (glibc32 or glibc-devel(%{__isa_name}-32))
-%endif
-%ifarch sparcv9 ppc
-BuildRequires: (glibc64 or glibc-devel(%{__isa_name}-64))
+%ifarch %{multilib_64_archs} sparcv9 ppc
+# Ensure glibc{,-devel} is installed for both multilib arches
+BuildRequires: /lib/libc.so.6 /usr/lib/libc.so /lib64/libc.so.6 /usr/lib64/libc.so
%endif
%if %{build_ada}
# Ada requires Ada to build
BuildRequires: gcc-gnat >= 3.1, libgnat >= 3.1
%endif
-%if %{build_d}
-# D requires D to build
-BuildRequires: gcc-gdc >= 11.0.0, libgphobos-static >= 11.0.0
-%endif
%ifarch ia64
BuildRequires: libunwind >= 0.98
%endif
+%if %{build_isl}
+BuildRequires: isl = %{isl_version}
+BuildRequires: isl-devel = %{isl_version}
+%if 0%{?__isa_bits} == 64
+Requires: libisl.so.15()(64bit)
+%else
+Requires: libisl.so.15
+%endif
+%endif
%if %{build_libstdcxx_docs}
BuildRequires: doxygen >= 1.7.1
BuildRequires: graphviz, dblatex, texlive-collection-latex, docbook5-style-xsl
%endif
-%if %{build_offload_amdgcn}
-BuildRequires: llvm >= 15, lld >= 15
-%endif
Requires: cpp = %{version}-%{release}
# Need .eh_frame ld optimizations
# Need proper visibility support
@@ -277,8 +229,11 @@ Requires: cpp = %{version}-%{release}
# Need binutils that support -plugin
# Need binutils that support .loc view >= 2.30
# Need binutils which support --generate-missing-build-notes=yes >= 2.31
-# Need binutils that support .base64 >= 2.43
-Requires: binutils >= 2.43
+%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
+Requires: binutils >= 2.31
+%else
+Requires: binutils >= 2.24
+%endif
# Make sure gdb will understand DW_FORM_strp
Conflicts: gdb < 5.1-2
Requires: glibc-devel >= 2.2.90-12
@@ -293,11 +248,6 @@ Requires: glibc >= 2.16
%endif
Requires: libgcc >= %{version}-%{release}
Requires: libgomp = %{version}-%{release}
-%if %{build_libatomic}
-Requires: libatomic = %{version}-%{release}
-Obsoletes: libatomic-static < %{version}-%{release}
-Provides: libatomic-static = %{version}-%{release}
-%endif
# lto-wrapper invokes make
Requires: make
%if !%{build_ada}
@@ -306,27 +256,25 @@ Obsoletes: gcc-gnat < %{version}-%{release}
Obsoletes: gcc-java < %{version}-%{release}
AutoReq: true
Provides: bundled(libiberty)
-Provides: bundled(libbacktrace)
-Provides: bundled(libffi)
Provides: gcc(major) = %{gcc_major}
-Patch0: gcc16-hack.patch
-Patch2: gcc16-sparc-config-detection.patch
-Patch3: gcc16-libgomp-omp_h-multilib.patch
-Patch4: gcc16-libtool-no-rpath.patch
-Patch5: gcc16-isl-dl.patch
-Patch6: gcc16-isl-dl2.patch
-Patch7: gcc16-libstdc++-docs.patch
-Patch8: gcc16-no-add-needed.patch
-Patch9: gcc16-Wno-format-security.patch
-Patch10: gcc16-rh1574936.patch
-Patch11: gcc16-d-shared-libphobos.patch
-Patch12: gcc16-pr119006.patch
-Patch13: gcc16-pr123273.patch
-
-Patch50: isl-rh2155127.patch
-
-Patch100: gcc16-fortran-fdec-duplicates.patch
+Patch0: gcc10-hack.patch
+Patch1: gcc10-i386-libgomp.patch
+Patch2: gcc10-sparc-config-detection.patch
+Patch3: gcc10-libgomp-omp_h-multilib.patch
+Patch4: gcc10-libtool-no-rpath.patch
+Patch5: gcc10-isl-dl.patch
+Patch6: gcc10-libstdc++-docs.patch
+Patch7: gcc10-no-add-needed.patch
+Patch8: gcc10-foffload-default.patch
+Patch9: gcc10-Wno-format-security.patch
+Patch10: gcc10-rh1574936.patch
+Patch11: gcc10-d-shared-libphobos.patch
+Patch12: gcc10-pr96383.patch
+Patch13: gcc10-pr96939.patch
+Patch14: gcc10-pr96939-2.patch
+Patch15: gcc10-pr96939-3.patch
+Patch16: gcc10-pr97060.patch
# On ARM EABI systems, we do want -gnueabi to be part of the
# target triple.
@@ -348,7 +296,7 @@ Patch100: gcc16-fortran-fdec-duplicates.patch
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.* \
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.16.* \
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -356,7 +304,7 @@ chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/test2json \
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/vet \
%__os_install_post \
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.* \
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.16.* \
chmod 755 %{buildroot}%{_prefix}/bin/go.gcc \
chmod 755 %{buildroot}%{_prefix}/bin/gofmt.gcc \
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
@@ -367,26 +315,26 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
%endif
%description
-The gcc package contains the GNU Compiler Collection version %{gcc_major}.
+The gcc package contains the GNU Compiler Collection version 10.
You'll need this package in order to compile C code.
%package -n libgcc
-Summary: GCC version %{gcc_major} shared support library
+Summary: GCC version 10 shared support library
Autoreq: false
%if !%{build_ada}
Obsoletes: libgnat < %{version}-%{release}
%endif
-Obsoletes: libmudflap < %{version}-%{release}
-Obsoletes: libmudflap-devel < %{version}-%{release}
-Obsoletes: libmudflap-static < %{version}-%{release}
+Obsoletes: libmudflap
+Obsoletes: libmudflap-devel
+Obsoletes: libmudflap-static
Obsoletes: libgcj < %{version}-%{release}
Obsoletes: libgcj-devel < %{version}-%{release}
Obsoletes: libgcj-src < %{version}-%{release}
%ifarch %{ix86} x86_64
-Obsoletes: libcilkrts < %{version}-%{release}
-Obsoletes: libcilkrts-static < %{version}-%{release}
-Obsoletes: libmpx < %{version}-%{release}
-Obsoletes: libmpx-static < %{version}-%{release}
+Obsoletes: libcilkrts
+Obsoletes: libcilkrts-static
+Obsoletes: libmpx
+Obsoletes: libmpx-static
%endif
%description -n libgcc
@@ -411,12 +359,6 @@ including templates and exception handling.
Summary: GNU Standard C++ Library
Autoreq: true
Requires: glibc >= 2.10.90-7
-BuildRequires: tzdata >= 2017c
-%if 0%{?fedora} > 38 || 0%{?rhel} > 9
-Recommends: tzdata >= 2017c
-%else
-Requires: tzdata >= 2017c
-%endif
%description -n libstdc++
The libstdc++ package contains a rewritten standard compliant GCC Standard
@@ -494,11 +436,9 @@ programs with the GNU Compiler Collection.
%package -n libgfortran
Summary: Fortran runtime
Autoreq: true
-%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%if %{build_libquadmath}
Requires: libquadmath = %{version}-%{release}
%endif
-%endif
%description -n libgfortran
This package contains Fortran shared library which is needed to run
@@ -543,96 +483,15 @@ Requires: gcc-gdc = %{version}-%{release}
%description -n libgphobos-static
This package contains static D libraries.
-%package gm2
-Summary: Modula-2 support
-Requires: gcc = %{version}-%{release}
-Requires: libgm2 = %{version}-%{release}
-Provides: gcc-m2 = %{version}-%{release}
-Provides: gm2 = %{version}-%{release}
-Autoreq: true
-
-%description gm2
-The gcc-gm2 package provides support for compiling Modula-2
-programs with the GNU Compiler Collection.
-
-%package -n libgm2
-Summary: Modula-2 runtime
-Autoreq: true
-
-%description -n libgm2
-This package contains Modula-2 shared libraries which are needed to run
-Modula-2 dynamically linked programs.
-
-%package -n libgm2-static
-Summary: Static Modula-2 libraries
-Requires: libgm2 = %{version}-%{release}
-Requires: gcc-gm2 = %{version}-%{release}
-
-%description -n libgm2-static
-This package contains static Modula-2 libraries.
-
-%package gcobol
-Summary: COBOL support
-Requires: gcc = %{version}-%{release}
-Requires: gcc-c++ = %{version}-%{release}
-Requires: libgcobol = %{version}-%{release}
-Autoreq: true
-
-%description gcobol
-The gcc-gcobol package provides support for compiling COBOL
-programs with the GNU Compiler Collection.
-
-%package -n libgcobol
-Summary: COBOL runtime
-Autoreq: true
-
-%description -n libgcobol
-This package contains COBOL shared libraries which are needed to run
-COBOL dynamically linked programs.
-
-%package -n libgcobol-static
-Summary: Static COBOL libraries
-Requires: libgcobol = %{version}-%{release}
-Requires: gcc-gcobol = %{version}-%{release}
-
-%description -n libgcobol-static
-This package contains static COBOL libraries.
-
-%package algol68
-Summary: Algol 68 support
-Requires: gcc = %{version}-%{release}
-Requires: libga68 = %{version}-%{release}
-Autoreq: true
-
-%description algol68
-The gcc-algol68 package provides support for compiling Algol 68
-programs with the GNU Compiler Collection.
-
-%package -n libga68
-Summary: Algol 68 runtime
-Autoreq: true
-
-%description -n libga68
-This package contains Algol 68 shared libraries which are needed to run
-Algol 68 dynamically linked programs.
-
-%package -n libga68-static
-Summary: Static Algol 68 libraries
-Requires: libga68 = %{version}-%{release}
-Requires: gcc-algol68 = %{version}-%{release}
-
-%description -n libga68-static
-This package contains static Algol 68 libraries.
-
%package -n libgomp
-Summary: GCC OpenMP v5.2 shared support library
+Summary: GCC OpenMP v4.5 shared support library
%description -n libgomp
This package contains GCC shared support library which is needed
-for OpenMP v5.2 support.
+for OpenMP v4.5 support.
%package -n libgomp-offload-nvptx
-Summary: GCC OpenMP v5.2 plugin for offloading to NVPTX
+Summary: GCC OpenMP v4.5 plugin for offloading to NVPTX
Requires: libgomp = %{version}-%{release}
%description -n libgomp-offload-nvptx
@@ -640,17 +499,6 @@ This package contains libgomp plugin for offloading to NVidia
PTX. The plugin needs libcuda.so.1 shared library that has to be
installed separately.
-%package -n libgomp-offload-amdgcn
-Summary: GCC OpenMP v5.2 plugin for offloading to AMD GCN
-Requires: libgomp = %{version}-%{release}
-%if 0%{?fedora:1}
-Requires: rocm-runtime >= 6.0.0
-%endif
-
-%description -n libgomp-offload-amdgcn
-This package contains libgomp plugin for offloading to AMD ROCm capable
-devices.
-
%package gdb-plugin
Summary: GCC plugin for GDB
Requires: gcc = %{version}-%{release}
@@ -677,20 +525,6 @@ Requires: libgccjit = %{version}-%{release}
%description -n libgccjit-devel
This package contains header files and documentation for GCC JIT front-end.
-%package -n libgdiagnostics
-Summary: Library for emitting diagnostics
-
-%description -n libgdiagnostics
-This package contains libgdiagnostics shared library and sarif-replay program.
-
-%package -n libgdiagnostics-devel
-Summary: Support for emitting diagnostics
-Requires: libgdiagnostics = %{version}-%{release}
-
-%description -n libgdiagnostics-devel
-This package contains header files and documentation for the libgdiagnostics
-library.
-
%package -n libquadmath
Summary: GCC __float128 shared support library
@@ -746,6 +580,13 @@ This package contains the GNU Atomic library
which is a GCC support runtime library for atomic operations not supported
by hardware.
+%package -n libatomic-static
+Summary: The GNU Atomic static library
+Requires: libatomic = %{version}-%{release}
+
+%description -n libatomic-static
+This package contains GNU Atomic static libraries.
+
%package -n libasan
Summary: The Address Sanitizer runtime library
@@ -760,21 +601,6 @@ Requires: libasan = %{version}-%{release}
%description -n libasan-static
This package contains Address Sanitizer static runtime library.
-%package -n libhwasan
-Summary: The Hardware-assisted Address Sanitizer runtime library
-
-%description -n libhwasan
-This package contains the Hardware-assisted Address Sanitizer library
-which is used for -fsanitize=hwaddress instrumented programs.
-
-%package -n libhwasan-static
-Summary: The Hardware-assisted Address Sanitizer static library
-Requires: libhwasan = %{version}-%{release}
-
-%description -n libhwasan-static
-This package contains Hardware-assisted Address Sanitizer static runtime
-library.
-
%package -n libtsan
Summary: The Thread Sanitizer runtime library
@@ -940,64 +766,42 @@ NVidia PTX. OpenMP and OpenACC programs linked with -fopenmp will
by default add PTX code into the binaries, which can be offloaded
to NVidia PTX capable devices if available.
-%package offload-amdgcn
-Summary: Offloading compiler to AMD GCN
-Requires: gcc = %{version}-%{release}
-Requires: libgomp-offload-amdgcn = %{version}-%{release}
-Requires: llvm >= 15, lld >= 15
-
-%description offload-amdgcn
-The gcc-offload-amdgcn package provides offloading support for
-AMD GCN. OpenMP and OpenACC programs linked with -fopenmp will
-by default add GCN code into the binaries, which can be offloaded
-to AMD ROCm capable devices if available.
-
-%package plugin-annobin
-Summary: The annobin plugin for gcc, built by the installed version of gcc
-Requires: gcc = %{version}-%{release}
-%if %{build_annobin_plugin}
-BuildRequires: annobin-plugin-gcc >= 10.62, rpm-devel, binutils-devel, xz
-%endif
-
-%description plugin-annobin
-This package adds a version of the annobin plugin for gcc. This version
-of the plugin is explicitly built by the same version of gcc that is installed
-so that there cannot be any synchronization problems.
-
%prep
-%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 2 -a 3
-%autopatch -p0 -m 0 -M 4
+%setup -q -n gcc-%{version}-%{DATE} -a 1 -a 2
+%patch0 -p0 -b .hack~
+%patch1 -p0 -b .i386-libgomp~
+%patch2 -p0 -b .sparc-config-detection~
+%patch3 -p0 -b .libgomp-omp_h-multilib~
+%patch4 -p0 -b .libtool-no-rpath~
%if %{build_isl}
-%autopatch -p0 -m 5 -M 6
+%patch5 -p0 -b .isl-dl~
%endif
%if %{build_libstdcxx_docs}
-%autopatch -p0 7
+%patch6 -p0 -b .libstdc++-docs~
%endif
-%autopatch -p0 -m 8 -M 9
+%patch7 -p0 -b .no-add-needed~
+%patch8 -p0 -b .foffload-default~
+%patch9 -p0 -b .Wno-format-security~
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
-%autopatch -p0 10
+%patch10 -p0 -b .rh1574936~
%endif
-%autopatch -p0 -m 11 -M 99
-touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m4
-
-%if 0%{?rhel} >= 9
-%autopatch -p1 100
-%endif
-
-%ifarch %{arm}
-rm -f gcc/testsuite/go.test/test/fixedbugs/issue19182.go
-%endif
-rm -f libphobos/testsuite/libphobos.gc/forkgc2.d
-#rm -rf libphobos/testsuite/libphobos.gc
+%patch11 -p0 -b .d-shared-libphobos~
+%patch12 -p0 -b .pr96383~
+%patch13 -p0 -b .pr96939~
+%patch14 -p0 -b .pr96939-2~
+%patch15 -p0 -b .pr96939-3~
+find gcc/testsuite -name \*.pr96939~ | xargs rm -f
+#%patch16 -p0 -b .pr97060~
echo 'Red Hat %{version}-%{gcc_release}' > gcc/DEV-PHASE
+cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
+
./contrib/gcc_update --touch
LC_ALL=C sed -i -e 's/\xa0/ /' gcc/doc/options.texi
sed -i -e 's/Common Driver Var(flag_report_bug)/& Init(1)/' gcc/common.opt
-sed -i -e 's/m_report_bug = false;/m_report_bug = true;/' gcc/diagnostics/context.cc
%ifarch ppc
if [ -d libstdc++-v3/config/abi/post/powerpc64-linux-gnu ]; then
@@ -1026,15 +830,11 @@ export CONFIG_SITE=NONE
CC=gcc
CXX=g++
-OPT_FLAGS="%{optflags}"
-OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=[123]//g'`
-OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[123]//g'`
-OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/\(-Wp,\)\?-U_FORTIFY_SOURCE//g'`
+OPT_FLAGS=`echo %{optflags}|sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-flto=auto//g;s/-flto//g;s/-ffat-lto-objects//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-m64//g;s/-m32//g;s/-m31//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mfpmath=sse/-mfpmath=sse -msse2/g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/ -pipe / /g'`
-OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-fno-omit-frame-pointer//g;s/-mbackchain//g;s/-mno-omit-leaf-frame-pointer//g'`
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-Werror=format-security/-Wformat-security/g'`
%ifarch sparc
OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-mcpu=ultrasparc/-mtune=ultrasparc/g;s/-mcpu=v[78]//g'`
@@ -1077,7 +877,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
--target nvptx-none --enable-as-accelerator-for=%{gcc_target_platform} \
--enable-languages=c,c++,fortran,lto \
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
- --with-bugurl=%dist_bug_report_url \
+ --with-bugurl=http://bugzilla.redhat.com/bugzilla \
--enable-checking=release --with-system-zlib \
--with-gcc-major-version-only --without-isl
make %{?_smp_mflags}
@@ -1085,82 +885,14 @@ cd ..
rm -f newlib
%endif
-%if %{build_offload_amdgcn}
-mkdir -p objia%{_prefix}/bin objia%{_prefix}/amdgcn-amdhsa/bin
-IAROOT=`pwd`/objia
-ln -sf %{_prefix}/bin/llvm-ar ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ar
-ln -sf %{_prefix}/bin/llvm-ar ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ranlib
-ln -sf %{_prefix}/bin/llvm-mc ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-as
-ln -sf %{_prefix}/bin/llvm-nm ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-nm
-ln -sf %{_prefix}/bin/lld ${IAROOT}%{_prefix}/bin/amdgcn-amdhsa-ld
-ln -sf ../../bin/amdgcn-amdhsa-ar ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ar
-ln -sf ../../bin/amdgcn-amdhsa-ranlib ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ranlib
-ln -sf ../../bin/amdgcn-amdhsa-as ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/as
-ln -sf ../../bin/amdgcn-amdhsa-nm ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/nm
-ln -sf ../../bin/amdgcn-amdhsa-ld ${IAROOT}%{_prefix}/amdgcn-amdhsa/bin/ld
-
-ln -sf newlib-cygwin-%{newlib_cygwin_gitrev}/newlib newlib
-rm -rf obj-offload-amdgcn-amdhsa
-mkdir obj-offload-amdgcn-amdhsa
-
-cd obj-offload-amdgcn-amdhsa
-CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
- CXXFLAGS="`echo " $OPT_FLAGS " | sed 's/ -Wall / /g;s/ -fexceptions / /g' \
- | sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
- XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
- ../configure --disable-bootstrap --disable-sjlj-exceptions \
- --with-build-time-tools=${IAROOT}%{_prefix}/amdgcn-amdhsa/bin \
- --target amdgcn-amdhsa --enable-as-accelerator-for=%{gcc_target_platform} \
- --enable-languages=c,c++,fortran,lto \
- --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
- --with-bugurl=%dist_bug_report_url \
- --enable-checking=release --with-system-zlib \
- --with-gcc-major-version-only --without-isl --disable-libquadmath
-make %{?_smp_mflags}
-cd ..
-rm -f newlib
-%endif
-
rm -rf obj-%{gcc_target_platform}
mkdir obj-%{gcc_target_platform}
cd obj-%{gcc_target_platform}
-%if %{build_isl}
-mkdir isl-build isl-install
-%ifarch s390 s390x
-ISL_FLAG_PIC=-fPIC
-%else
-ISL_FLAG_PIC=-fpic
-%endif
-cd isl-build
-
-%ifarch riscv64
-# Update config.{sub,guess} scripts for riscv64 (the original ones are too old)
-cp -f -v /usr/lib/rpm/%{_vendor}/config.guess ../../isl-%{isl_version}/config.guess
-cp -f -v /usr/lib/rpm/%{_vendor}/config.sub ../../isl-%{isl_version}/config.sub
-%endif
-
-sed -i 's|libisl\([^-]\)|libgcc%{gcc_major}privateisl\1|g' \
- ../../isl-%{isl_version}/Makefile.{am,in}
-../../isl-%{isl_version}/configure \
- CC=/usr/bin/gcc CXX=/usr/bin/g++ \
- CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC" --prefix=`cd ..; pwd`/isl-install
-make %{?_smp_mflags} CFLAGS="${CFLAGS:-%optflags} $ISL_FLAG_PIC"
-make install
-cd ../isl-install/lib
-rm libgcc%{gcc_major}privateisl.so{,.23}
-mv libgcc%{gcc_major}privateisl.so.23.1.0 libisl.so.23
-ln -sf libisl.so.23 libisl.so
-cd ../..
-%endif
-
enablelgo=
enablelada=
enablelobjc=
enableld=
-enablelm2=
-enablelcob=
-enablela68=
%if %{build_objc}
enablelobjc=,objc,obj-c++
%endif
@@ -1173,25 +905,9 @@ enablelgo=,go
%if %{build_d}
enableld=,d
%endif
-%if %{build_m2}
-enablelm2=,m2
-%endif
-%if %{build_cobol}
-enablelcob=,cobol
-%endif
-%if %{build_algol68}
-enablela68=,algol68
-%endif
-offloadtgts=
-%if %{build_offload_nvptx}
-offloadtgts=nvptx-none
-%endif
-%if %{build_offload_amdgcn}
-offloadtgts=${offloadtgts:+${offloadtgts},}amdgcn-amdhsa
-%endif
CONFIGURE_OPTS="\
--prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
- --with-bugurl=%dist_bug_report_url \
+ --with-bugurl=http://bugzilla.redhat.com/bugzilla \
--enable-shared --enable-threads=posix --enable-checking=release \
%ifarch ppc64le
--enable-targets=powerpcle-linux \
@@ -1211,20 +927,17 @@ CONFIGURE_OPTS="\
%endif
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
--enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only \
- --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=%{_datadir}/zoneinfo \
%ifnarch %{mips}
--with-linker-hash-style=gnu \
%endif
--enable-plugin --enable-initfini-array \
%if %{build_isl}
- --with-isl=`pwd`/isl-install \
+ --with-isl \
%else
--without-isl \
%endif
-%if %{build_offload_nvptx} || %{build_offload_amdgcn}
- --enable-offload-targets=$offloadtgts --enable-offload-defaulted \
-%endif
%if %{build_offload_nvptx}
+ --enable-offload-targets=nvptx-none \
--without-cuda-driver \
%endif
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
@@ -1241,9 +954,6 @@ CONFIGURE_OPTS="\
%ifarch sparc sparcv9 sparc64 ppc ppc64 ppc64le ppc64p7 s390 s390x alpha
--with-long-double-128 \
%endif
-%ifarch ppc64le
- --with-long-double-format=ieee \
-%endif
%ifarch sparc
--disable-linux-futex \
%endif
@@ -1262,38 +972,20 @@ CONFIGURE_OPTS="\
%endif
%endif
%ifarch ppc64le
-%if 0%{?rhel} >= 9
-%if 0%{?rhel} >= 10
- --with-cpu-32=power9 --with-tune-32=power10 --with-cpu-64=power9 --with-tune-64=power10 \
-%else
- --with-cpu-32=power9 --with-tune-32=power9 --with-cpu-64=power9 --with-tune-64=power9 \
-%endif
-%else
--with-cpu-32=power8 --with-tune-32=power8 --with-cpu-64=power8 --with-tune-64=power8 \
%endif
-%endif
%ifarch ppc
--build=%{gcc_target_platform} --target=%{gcc_target_platform} --with-cpu=default32
%endif
%ifarch %{ix86} x86_64
--enable-cet \
--with-tune=generic \
-%if 0%{?fedora} >= 44 || 0%{?rhel} >= 11
- --with-tls=gnu2 \
-%endif
%endif
%if 0%{?rhel} >= 7
%ifarch %{ix86}
--with-arch=x86-64 \
%endif
%ifarch x86_64
-%if 0%{?rhel} > 8
-%if 0%{?rhel} > 9
- --with-arch_64=x86-64-v3 \
-%else
- --with-arch_64=x86-64-v2 \
-%endif
-%endif
--with-arch_32=x86-64 \
%endif
%else
@@ -1307,28 +999,16 @@ CONFIGURE_OPTS="\
%ifarch s390 s390x
%if 0%{?rhel} >= 7
%if 0%{?rhel} > 7
-%if 0%{?rhel} > 8
-%if 0%{?rhel} >= 9
- --with-arch=z14 --with-tune=z15 \
-%else
- --with-arch=z13 --with-tune=arch13 \
-%endif
-%else
--with-arch=z13 --with-tune=z14 \
-%endif
%else
--with-arch=z196 --with-tune=zEC12 \
%endif
%else
-%if 0%{?fedora} >= 38
- --with-arch=z13 --with-tune=z14 \
-%else
%if 0%{?fedora} >= 26
--with-arch=zEC12 --with-tune=z13 \
%else
--with-arch=z9-109 --with-tune=z10 \
%endif
-%endif
%endif
--enable-decimal-float \
%endif
@@ -1347,24 +1027,6 @@ CONFIGURE_OPTS="\
%endif
%ifnarch sparc sparcv9 ppc
--build=%{gcc_target_platform} \
-%endif
-%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
-%ifnarch %{arm}
- --with-build-config=bootstrap-lto --enable-link-serialization=1 \
-%endif
-%endif
-%if 0%{?rhel:1}
- --enable-host-pie --enable-host-bind-now \
-%endif
- --disable-libssp \
-%if %{build_libquadmath} == 0
- --disable-libquadmath \
-%endif
-%if %{build_libatomic} == 0
- --disable-libatomic \
-%endif
-%if %{build_libitm} == 0
- --disable-libitm \
%endif
"
@@ -1373,13 +1035,13 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
../configure --enable-bootstrap \
- --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld}${enablelm2}${enablelcob}${enablela68},lto \
+ --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto \
$CONFIGURE_OPTS
%ifarch sparc sparcv9 sparc64
-make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now bootstrap
+make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" bootstrap
%else
-make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now profiledbootstrap
+make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" profiledbootstrap
%endif
CC="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc`"
@@ -1394,7 +1056,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
| sed 's/ -Wformat-security / -Wformat -Wformat-security /'`" \
XCFLAGS="$OPT_FLAGS" TCFLAGS="$OPT_FLAGS" \
../../configure --disable-bootstrap --enable-host-shared \
- --enable-languages=jit --enable-libgdiagnostics $CONFIGURE_OPTS
+ --enable-languages=jit $CONFIGURE_OPTS
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" all-gcc
cp -a gcc/libgccjit.so* ../gcc/
cd ../gcc/
@@ -1407,10 +1069,6 @@ make jit.sphinx.html
make jit.sphinx.install-html jit_htmldir=`pwd`/../../rpm.doc/libgccjit-devel/html
cd ..
-%if %{build_isl}
-cp -a isl-install/lib/libisl.so.23 gcc/
-%endif
-
# Make generated man pages even if Pod::Man is not new enough
perl -pi -e 's/head3/head2/' ../contrib/texi2pod.pl
for i in ../gcc/doc/*.texi; do
@@ -1429,7 +1087,7 @@ cd ../..
# Copy various doc files here and there
cd ..
-mkdir -p rpm.doc/{gfortran,objc,gdc,libphobos,gm2,libgm2,libgdiagnostics-devel,gcobol,libgcobol,algol68,libga68}
+mkdir -p rpm.doc/gfortran rpm.doc/objc rpm.doc/gdc rpm.doc/libphobos
mkdir -p rpm.doc/go rpm.doc/libgo rpm.doc/libquadmath rpm.doc/libitm
mkdir -p rpm.doc/changelogs/{gcc/cp,gcc/ada,gcc/jit,libstdc++-v3,libobjc,libgomp,libcc1,libatomic,libsanitizer}
@@ -1455,38 +1113,12 @@ done)
(cd libphobos; for i in ChangeLog*; do
cp -p $i ../rpm.doc/libphobos/$i.libphobos
done
-cp -a src/LICENSE*.txt libdruntime/LICENSE.txt ../rpm.doc/libphobos/)
-%endif
-%if %{build_m2}
-(cd gcc/m2; for i in ChangeLog*; do
- cp -p $i ../../rpm.doc/gm2/$i.gm2
-done)
-(cd libgm2; for i in ChangeLog*; do
- cp -p $i ../rpm.doc/libgm2/$i.libgm2
-done)
-%endif
-%if %{build_cobol}
-(cd gcc/cobol; for i in ChangeLog*; do
- cp -p $i ../../rpm.doc/gcobol/$i.gcobol
-done)
-(cd libgcobol; for i in ChangeLog*; do
- cp -p $i ../rpm.doc/libgcobol/$i.libgcobol
-done)
-%endif
-%if %{build_algol68}
-(cd gcc/algol68; for i in ChangeLog*; do
- cp -p $i ../../rpm.doc/algol68/$i.algol68
-done)
-(cd libga68; for i in ChangeLog*; do
- cp -p $i ../rpm.doc/libga68/$i.libga68
-done)
+cp -a src/LICENSE*.txt libdruntime/LICENSE ../rpm.doc/libphobos/)
%endif
%if %{build_libquadmath}
(cd libquadmath; for i in ChangeLog* COPYING.LIB; do
cp -p $i ../rpm.doc/libquadmath/$i.libquadmath
-done;
-sed -n '/==========/,/==========/{/==========/d;s/^ \* *//p}' math/cosq.c \
- > ../rpm.doc/libquadmath/LICENSE.SunPro)
+done)
%endif
%if %{build_libitm}
(cd libitm; for i in ChangeLog*; do
@@ -1501,33 +1133,10 @@ done)
cp -p $i ../rpm.doc/libgo/$i.libgo
done)
%endif
-(cd gcc/doc/libgdiagnostics; make html; \
-mv _build/html ../../../rpm.doc/libgdiagnostics-devel/html )
rm -f rpm.doc/changelogs/gcc/ChangeLog.[1-9]
find rpm.doc -name \*ChangeLog\* | xargs bzip2 -9
-%if %{build_annobin_plugin}
-mkdir annobin-plugin
-cd annobin-plugin
-tar xf %{_usrsrc}/annobin/latest-annobin.tar.xz
-cd annobin*
-touch aclocal.m4 configure Makefile.in */configure */config.h.in */Makefile.in
-ANNOBIN_FLAGS=../../obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags
-ANNOBIN_CFLAGS1="%build_cflags -I %{_builddir}/gcc-%{version}-%{DATE}/gcc"
-ANNOBIN_CFLAGS1="$ANNOBIN_CFLAGS1 -I %{_builddir}/gcc-%{version}-%{DATE}/obj-%{gcc_target_platform}/gcc"
-ANNOBIN_CFLAGS2="-I %{_builddir}/gcc-%{version}-%{DATE}/include -I %{_builddir}/gcc-%{version}-%{DATE}/libcpp/include"
-ANNOBIN_LDFLAGS="%build_ldflags -L%{_builddir}/gcc-%{version}-%{DATE}/obj-%{gcc_target_platform}/%{gcc_target_platform}/libstdc++-v3/src/.libs"
-CC="`$ANNOBIN_FLAGS --build-cc`" CXX="`$ANNOBIN_FLAGS --build-cxx`" \
- CFLAGS="$ANNOBIN_CFLAGS1 $ANNOBIN_CFLAGS2 $ANNOBIN_LDFLAGS" \
- CXXFLAGS="$ANNOBIN_CFLAGS1 `$ANNOBIN_FLAGS --build-includes` $ANNOBIN_CFLAGS2 $ANNOBIN_LDFLAGS" \
- ./configure --with-gcc-plugin-dir=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin \
- --without-annocheck --without-tests --without-docs --disable-rpath --without-debuginfod \
- --without-clang-plugin --without-llvm-plugin
-make
-cd ../..
-%endif
-
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
@@ -1555,7 +1164,6 @@ cd obj-offload-nvptx-none
make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
infodir=%{buildroot}%{_infodir} install
rm -rf %{buildroot}%{_prefix}/libexec/gcc/nvptx-none/%{gcc_major}/install-tools
-rm -rf %{buildroot}%{_prefix}/libexec/gcc/nvptx-none/%{gcc_major}/g++-mapper-server
rm -rf %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/nvptx-none/{install-tools,plugin,cc1,cc1plus,f951}
rm -rf %{buildroot}%{_infodir} %{buildroot}%{_mandir}/man7 %{buildroot}%{_prefix}/share/locale
rm -rf %{buildroot}%{_prefix}/lib/gcc/nvptx-none/%{gcc_major}/{install-tools,plugin}
@@ -1571,44 +1179,6 @@ cd ..
rm -f newlib
%endif
-%if %{build_offload_amdgcn}
-mkdir -p %{buildroot}%{_prefix}/bin %{buildroot}%{_prefix}/amdgcn-amdhsa/bin
-ln -sf llvm-ar %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ar
-ln -sf llvm-ar %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ranlib
-ln -sf llvm-mc %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-as
-ln -sf llvm-nm %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-nm
-ln -sf lld %{buildroot}%{_prefix}/bin/amdgcn-amdhsa-ld
-ln -sf ../../bin/amdgcn-amdhsa-ar %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ar
-ln -sf ../../bin/amdgcn-amdhsa-ranlib %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ranlib
-ln -sf ../../bin/amdgcn-amdhsa-as %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/as
-ln -sf ../../bin/amdgcn-amdhsa-nm %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/nm
-ln -sf ../../bin/amdgcn-amdhsa-ld %{buildroot}%{_prefix}/amdgcn-amdhsa/bin/ld
-
-ln -sf newlib-cygwin-%{newlib_cygwin_gitrev}/newlib newlib
-cd obj-offload-amdgcn-amdhsa
-make prefix=%{buildroot}%{_prefix} mandir=%{buildroot}%{_mandir} \
- infodir=%{buildroot}%{_infodir} install
-rm -rf %{buildroot}%{_prefix}/libexec/gcc/amdgcn-amdhsa/%{gcc_major}/install-tools
-rm -rf %{buildroot}%{_prefix}/libexec/gcc/amdgcn-amdhsa/%{gcc_major}/g++-mapper-server
-rm -rf %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/{install-tools,plugin,cc1,cc1plus,f951}
-rm -rf %{buildroot}%{_infodir} %{buildroot}%{_mandir}/man7 %{buildroot}%{_prefix}/share/locale
-rm -rf %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/{install-tools,plugin}
-rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/{install-tools,plugin,include-fixed}
-rm -rf %{buildroot}%{_prefix}/%{_lib}/libc[cp]1*
-mv -f %{buildroot}%{_prefix}/amdgcn-amdhsa/lib/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/
-mv -f %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/
-pushd %{buildroot}%{_prefix}/amdgcn-amdhsa/lib
-for i in gfx*; do
-mv -f %{buildroot}%{_prefix}/amdgcn-amdhsa/lib/$i/*.{a,spec} %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/$i/
-mv -f %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa/%{gcc_major}/$i/*.a %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa/$i/
-done
-popd
-find %{buildroot}%{_prefix}/lib/gcc/amdgcn-amdhsa %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa \
- %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name \*.la | xargs rm
-cd ..
-rm -f newlib
-%endif
-
cd obj-%{gcc_target_platform}
TARGET_PLATFORM=%{gcc_target_platform}
@@ -1625,10 +1195,6 @@ chmod 644 %{buildroot}%{_infodir}/gnat*
FULLPATH=%{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
FULLEPATH=%{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
-%if %{build_isl}
-cp -a isl-install/lib/libisl.so.23 $FULLPATH/
-%endif
-
# fix some things
ln -sf gcc %{buildroot}%{_prefix}/bin/cc
rm -f %{buildroot}%{_prefix}/lib/cpp
@@ -1636,9 +1202,7 @@ ln -sf ../bin/cpp %{buildroot}/%{_prefix}/lib/cpp
ln -sf gfortran %{buildroot}%{_prefix}/bin/f95
rm -f %{buildroot}%{_infodir}/dir
gzip -9 %{buildroot}%{_infodir}/*.info*
-%if %{build_ada}
ln -sf gcc %{buildroot}%{_prefix}/bin/gnatgcc
-%endif
mkdir -p %{buildroot}%{_fmoddir}
%if %{build_go}
@@ -1683,10 +1247,12 @@ for f in `find %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_plat
done
# Nuke bits/*.h.gch dirs
-# 1) sometimes it is hard to match the exact options used for building
+# 1) there is no bits/*.h header installed, so when gch file can't be
+# used, compilation fails
+# 2) sometimes it is hard to match the exact options used for building
# libstdc++-v3 or they aren't desirable
-# 2) there are multilib issues, conflicts etc. with this
-# 3) it is huge
+# 3) there are multilib issues, conflicts etc. with this
+# 4) it is huge
# People can always precompile on their own whatever they want, but
# shipping this for everybody is unnecessary.
rm -rf %{buildroot}%{_prefix}/include/c++/%{gcc_major}/%{gcc_target_platform}/bits/*.h.gch
@@ -1698,7 +1264,7 @@ cp -r -p ../libstdc++-v3/doc/html ../rpm.doc/libstdc++-v3/html
cp -r -p $libstdcxx_doc_builddir/html ../rpm.doc/libstdc++-v3/html/api
mkdir -p %{buildroot}%{_mandir}/man3
cp -r -p $libstdcxx_doc_builddir/man/man3/* %{buildroot}%{_mandir}/man3/
-find ../rpm.doc/libstdc++-v3 -name \*~ -o -name \*.orig | xargs rm -f
+find ../rpm.doc/libstdc++-v3 -name \*~ | xargs rm
%endif
%ifarch sparcv9 sparc64
@@ -1736,12 +1302,6 @@ mv %{buildroot}%{_prefix}/%{_lib}/libitm.spec $FULLPATH/
%if %{build_libasan}
mv %{buildroot}%{_prefix}/%{_lib}/libsanitizer.spec $FULLPATH/
%endif
-%if %{build_cobol}
-mv %{buildroot}%{_prefix}/%{_lib}/libgcobol.spec $FULLPATH/
-%endif
-%if %{build_algol68}
-mv %{buildroot}%{_prefix}/%{_lib}/libga68.spec $FULLPATH/
-%endif
mkdir -p %{buildroot}/%{_lib}
mv -f %{buildroot}%{_prefix}/%{_lib}/libgcc_s.so.1 %{buildroot}/%{_lib}/libgcc_s-%{gcc_major}-%{DATE}.so.1
@@ -1757,11 +1317,6 @@ GROUP ( /%{_lib}/libgcc_s.so.1 libgcc.a )' > $FULLPATH/libgcc_s.so
%else
ln -sf /%{_lib}/libgcc_s.so.1 $FULLPATH/libgcc_s.so
%endif
-rm -f $FULLPATH/libgcc_s_asneeded.so
-echo '/* GNU ld script
- Add DT_NEEDED entry for libgcc_s.so only if needed. */
-OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/libgcc_s_asneeded.so
%ifarch sparcv9 ppc
%ifarch ppc
rm -f $FULLPATH/64/libgcc_s.so
@@ -1773,11 +1328,6 @@ GROUP ( /lib64/libgcc_s.so.1 libgcc.a )' > $FULLPATH/64/libgcc_s.so
%else
ln -sf /lib64/libgcc_s.so.1 $FULLPATH/64/libgcc_s.so
%endif
-rm -f $FULLPATH/64/libgcc_s_asneeded.so
-echo '/* GNU ld script
- Add DT_NEEDED entry for libgcc_s.so only if needed. */
-OUTPUT_FORMAT('`gcc -m64 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/64/libgcc_s_asneeded.so
%endif
%ifarch %{multilib_64_archs}
%ifarch x86_64 ppc64 ppc64p7
@@ -1790,11 +1340,6 @@ GROUP ( /lib/libgcc_s.so.1 libgcc.a )' > $FULLPATH/32/libgcc_s.so
%else
ln -sf /lib/libgcc_s.so.1 $FULLPATH/32/libgcc_s.so
%endif
-rm -f $FULLPATH/32/libgcc_s_asneeded.so
-echo '/* GNU ld script
- Add DT_NEEDED entry for libgcc_s.so only if needed. */
-OUTPUT_FORMAT('`gcc -m32 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -lgcc_s ) )' > $FULLPATH/32/libgcc_s_asneeded.so
%endif
mv -f %{buildroot}%{_prefix}/%{_lib}/libgomp.spec $FULLPATH/
@@ -1815,8 +1360,18 @@ fi
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++*gdb.py* \
%{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/
-%py_byte_compile %{python3} %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/
-%py_byte_compile %{python3} %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/
+pushd ../libstdc++-v3/python
+for i in `find . -name \*.py`; do
+ touch -r $i %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/$i
+done
+touch -r hook.in %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/libstdc++*gdb.py
+popd
+for f in `find %{buildroot}%{_prefix}/share/gcc-%{gcc_major}/python/ \
+ %{buildroot}%{_datadir}/gdb/auto-load/%{_prefix}/%{_lib}/ -name \*.py`; do
+ r=${f/$RPM_BUILD_ROOT/}
+ %{__python3} -c 'import py_compile; py_compile.compile("'$f'", dfile="'$r'")'
+ %{__python3} -O -c 'import py_compile; py_compile.compile("'$f'", dfile="'$r'")'
+done
rm -f $FULLEPATH/libgccjit.so
cp -a objlibgccjit/gcc/libgccjit.so* %{buildroot}%{_prefix}/%{_lib}/
@@ -1824,15 +1379,6 @@ cp -a ../gcc/jit/libgccjit*.h %{buildroot}%{_prefix}/include/
/usr/bin/install -c -m 644 objlibgccjit/gcc/doc/libgccjit.info %{buildroot}/%{_infodir}/
gzip -9 %{buildroot}/%{_infodir}/libgccjit.info
-rm -f $FULLEPATH/libgdiagnostics.so
-cp -a objlibgccjit/gcc/libgdiagnostics.so* %{buildroot}%{_prefix}/%{_lib}/
-cp -a ../gcc/libgdiagnostics*.h %{buildroot}%{_prefix}/include/
-cp -a objlibgccjit/gcc/sarif-replay %{buildroot}%{_prefix}/bin/
-
-sed -e 's,\.\./include/,../../../../include/,' \
- %{buildroot}%{_prefix}/%{_lib}/libstdc++.modules.json \
- > $FULLPATH/libstdc++.modules.json
-
pushd $FULLPATH
if [ "%{_lib}" = "lib" ]; then
%if %{build_objc}
@@ -1842,40 +1388,23 @@ ln -sf ../../../libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../libgfortran.so.5.* libgfortran.so
ln -sf ../../../libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../libgo.so.25.* libgo.so
+ln -sf ../../../libgo.so.16.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../libgdruntime.so.6.* libgdruntime.so
-ln -sf ../../../libgphobos.so.6.* libgphobos.so
-%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- ln -sf ../../../libm2$i.so.21.* libm2$i.so
-done
-%endif
-%if %{build_cobol}
-ln -sf ../../../libgcobol.so.2.* libgcobol.so
-%endif
-%if %{build_algol68}
-ln -sf ../../../libga68.so.2.* libga68.so
+ln -sf ../../../libgdruntime.so.1.* libgdruntime.so
+ln -sf ../../../libgphobos.so.1.* libgphobos.so
%endif
%if %{build_libitm}
ln -sf ../../../libitm.so.1.* libitm.so
%endif
%if %{build_libatomic}
ln -sf ../../../libatomic.so.1.* libatomic.so
-rm -f libatomic_asneeded.so libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
-ln -sf libatomic.a libatomic_asneeded.a
%endif
%if %{build_libasan}
-ln -sf ../../../libasan.so.8.* libasan.so
+ln -sf ../../../libasan.so.6.* libasan.so
mv ../../../libasan_preinit.o libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1889,40 +1418,23 @@ ln -sf ../../../../%{_lib}/libstdc++.so.6.*[0-9] libstdc++.so
ln -sf ../../../../%{_lib}/libgfortran.so.5.* libgfortran.so
ln -sf ../../../../%{_lib}/libgomp.so.1.* libgomp.so
%if %{build_go}
-ln -sf ../../../../%{_lib}/libgo.so.25.* libgo.so
+ln -sf ../../../../%{_lib}/libgo.so.16.* libgo.so
%endif
%if %{build_libquadmath}
ln -sf ../../../../%{_lib}/libquadmath.so.0.* libquadmath.so
%endif
%if %{build_d}
-ln -sf ../../../../%{_lib}/libgdruntime.so.6.* libgdruntime.so
-ln -sf ../../../../%{_lib}/libgphobos.so.6.* libgphobos.so
-%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- ln -sf ../../../../%{_lib}/libm2$i.so.21.* libm2$i.so
-done
-%endif
-%if %{build_cobol}
-ln -sf ../../../../%{_lib}/libgcobol.so.2.* libgcobol.so
-%endif
-%if %{build_algol68}
-ln -sf ../../../../%{_lib}/libga68.so.2.* libga68.so
+ln -sf ../../../../%{_lib}/libgdruntime.so.1.* libgdruntime.so
+ln -sf ../../../../%{_lib}/libgphobos.so.1.* libgphobos.so
%endif
%if %{build_libitm}
ln -sf ../../../../%{_lib}/libitm.so.1.* libitm.so
%endif
%if %{build_libatomic}
ln -sf ../../../../%{_lib}/libatomic.so.1.* libatomic.so
-rm -f libatomic_asneeded.so libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
-ln -sf libatomic.a libatomic_asneeded.a
%endif
%if %{build_libasan}
-ln -sf ../../../../%{_lib}/libasan.so.8.* libasan.so
+ln -sf ../../../../%{_lib}/libasan.so.6.* libasan.so
mv ../../../../%{_lib}/libasan_preinit.o libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -1930,14 +1442,9 @@ ln -sf ../../../../%{_lib}/libubsan.so.1.* libubsan.so
%endif
%if %{build_libtsan}
rm -f libtsan.so
-echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/libtsan.so.2.* | sed 's,^.*libt,libt,'`' )' > libtsan.so
+echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/libtsan.so.0.* | sed 's,^.*libt,libt,'`' )' > libtsan.so
mv ../../../../%{_lib}/libtsan_preinit.o libtsan_preinit.o
%endif
-%if %{build_libhwasan}
-rm -f libhwasan.so
-echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/libhwasan.so.0.* | sed 's,^.*libh,libh,'`' )' > libhwasan.so
-mv ../../../../%{_lib}/libhwasan_preinit.o libhwasan_preinit.o
-%endif
%if %{build_liblsan}
rm -f liblsan.so
echo 'INPUT ( %{_prefix}/%{_lib}/'`echo ../../../../%{_lib}/liblsan.so.0.* | sed 's,^.*libl,libl,'`' )' > liblsan.so
@@ -1946,7 +1453,6 @@ mv ../../../../%{_lib}/liblsan_preinit.o liblsan_preinit.o
fi
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++fs.*a $FULLLPATH/
-mv -f %{buildroot}%{_prefix}/%{_lib}/libstdc++exp.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libsupc++.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libgfortran.*a $FULLLPATH/
%if %{build_objc}
@@ -1960,25 +1466,11 @@ mv -f %{buildroot}%{_prefix}/%{_lib}/libquadmath.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libgdruntime.*a $FULLLPATH/
mv -f %{buildroot}%{_prefix}/%{_lib}/libgphobos.*a $FULLLPATH/
%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- mv -f %{buildroot}%{_prefix}/%{_lib}/libm2$i.*a $FULLLPATH/
- rm -f m2/m2$i/*.{a,la}
- ln -sf ../../libm2$i.so m2/m2$i/
- ln -sf ../../libm2$i.a m2/m2$i/
-done
-%endif
-%if %{build_cobol}
-mv -f %{buildroot}%{_prefix}/%{_lib}/libgcobol.*a $FULLLPATH/
-%endif
-%if %{build_algol68}
-mv -f %{buildroot}%{_prefix}/%{_lib}/libga68.*a $FULLLPATH/
-%endif
%if %{build_libitm}
mv -f %{buildroot}%{_prefix}/%{_lib}/libitm.*a $FULLLPATH/
%endif
%if %{build_libatomic}
-mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLPATH/
+mv -f %{buildroot}%{_prefix}/%{_lib}/libatomic.*a $FULLLPATH/
%endif
%if %{build_libasan}
mv -f %{buildroot}%{_prefix}/%{_lib}/libasan.*a $FULLLPATH/
@@ -1989,9 +1481,6 @@ mv -f %{buildroot}%{_prefix}/%{_lib}/libubsan.*a $FULLLPATH/
%if %{build_libtsan}
mv -f %{buildroot}%{_prefix}/%{_lib}/libtsan.*a $FULLPATH/
%endif
-%if %{build_libhwasan}
-mv -f %{buildroot}%{_prefix}/%{_lib}/libhwasan.*a $FULLPATH/
-%endif
%if %{build_liblsan}
mv -f %{buildroot}%{_prefix}/%{_lib}/liblsan.*a $FULLPATH/
%endif
@@ -2013,28 +1502,28 @@ mv -f $FULLPATH/ada{include,lib} $FULLLPATH/
pushd $FULLLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../../libgnarl-*.so libgnarl-%{gcc_major}.so
+ln -sf ../../../../../libgnarl-*.so libgnarl-9.so
ln -sf ../../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../../libgnat-*.so libgnat-%{gcc_major}.so
+ln -sf ../../../../../libgnat-*.so libgnat-9.so
else
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-%{gcc_major}.so
+ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-9.so
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-%{gcc_major}.so
+ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-9.so
fi
popd
else
pushd $FULLPATH/adalib
if [ "%{_lib}" = "lib" ]; then
ln -sf ../../../../libgnarl-*.so libgnarl.so
-ln -sf ../../../../libgnarl-*.so libgnarl-%{gcc_major}.so
+ln -sf ../../../../libgnarl-*.so libgnarl-9.so
ln -sf ../../../../libgnat-*.so libgnat.so
-ln -sf ../../../../libgnat-*.so libgnat-%{gcc_major}.so
+ln -sf ../../../../libgnat-*.so libgnat-9.so
else
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl.so
-ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-%{gcc_major}.so
+ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-9.so
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat.so
-ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-%{gcc_major}.so
+ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-9.so
fi
popd
fi
@@ -2049,8 +1538,8 @@ ln -sf ../`echo ../../../../lib/libgfortran.so.5.* | sed s~/lib/~/lib64/~` 64/li
ln -sf ../`echo ../../../../lib/libgomp.so.1.* | sed s~/lib/~/lib64/~` 64/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.16.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.16.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -2059,30 +1548,10 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
-%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- rm -f libm2$i.so
- echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
- echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > 64/libm2$i.so
- rm -f 64/m2/m2$i/*.{a,la}
- ln -sf ../../libm2$i.so 64/m2/m2$i/
- ln -sf ../../libm2$i.a 64/m2/m2$i/
-done
-%endif
-%if %{build_cobol}
-rm -f libgcobol.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > libgcobol.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgcobol.so
-%endif
-%if %{build_algol68}
-rm -f libga68.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > libga68.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libga68.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
%endif
%if %{build_libitm}
rm -f libitm.so
@@ -2093,23 +1562,11 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libitm.so.1.* | sed 's,^.*
rm -f libatomic.so
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > libatomic.so
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > 64/libatomic.so
-mv -f %{buildroot}%{_prefix}/lib64/libatomic.*a 64/
-rm -f libatomic_asneeded.so libatomic_asneeded.a 64/libatomic_asneeded.so 64/libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
-ln -sf libatomic.a libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -m64 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > 64/libatomic_asneeded.so
-ln -sf libatomic.a 64/libatomic_asneeded.a
%endif
%if %{build_libasan}
rm -f libasan.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > libasan.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > 64/libasan.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > libasan.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > 64/libasan.so
mv ../../../../lib64/libasan_preinit.o 64/libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -2127,8 +1584,6 @@ ln -sf lib32/libstdc++.a libstdc++.a
ln -sf ../lib64/libstdc++.a 64/libstdc++.a
ln -sf lib32/libstdc++fs.a libstdc++fs.a
ln -sf ../lib64/libstdc++fs.a 64/libstdc++fs.a
-ln -sf lib32/libstdc++exp.a libstdc++exp.a
-ln -sf ../lib64/libstdc++exp.a 64/libstdc++exp.a
ln -sf lib32/libsupc++.a libsupc++.a
ln -sf ../lib64/libsupc++.a 64/libsupc++.a
%if %{build_libquadmath}
@@ -2141,24 +1596,14 @@ ln -sf ../lib64/libgdruntime.a 64/libgdruntime.a
ln -sf lib32/libgphobos.a libgphobos.a
ln -sf ../lib64/libgphobos.a 64/libgphobos.a
%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- ln -sf lib32/libm2$i.a libm2$i.a
- ln -sf ../lib64/libm2$i.a 64/libm2$i.a
-done
-%endif
-%if %{build_cobol}
-ln -sf lib32/libgcobol.a libgcobol.a
-ln -sf ../lib64/libgcobol.a 64/libgcobol.a
-%endif
-%if %{build_algol68}
-ln -sf lib32/libga68.a libga68.a
-ln -sf ../lib64/libga68.a 64/libga68.a
-%endif
%if %{build_libitm}
ln -sf lib32/libitm.a libitm.a
ln -sf ../lib64/libitm.a 64/libitm.a
%endif
+%if %{build_libatomic}
+ln -sf lib32/libatomic.a libatomic.a
+ln -sf ../lib64/libatomic.a 64/libatomic.a
+%endif
%if %{build_libasan}
ln -sf lib32/libasan.a libasan.a
ln -sf ../lib64/libasan.a 64/libasan.a
@@ -2192,8 +1637,8 @@ ln -sf ../`echo ../../../../lib64/libgfortran.so.5.* | sed s~/../lib64/~/~` 32/l
ln -sf ../`echo ../../../../lib64/libgomp.so.1.* | sed s~/../lib64/~/~` 32/libgomp.so
%if %{build_go}
rm -f libgo.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > libgo.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.25.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.16.* | sed 's,^.*libg,libg,'`' )' > libgo.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.16.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
%endif
%if %{build_libquadmath}
rm -f libquadmath.so
@@ -2202,30 +1647,10 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libquadmath.so.0.* | sed '
%endif
%if %{build_d}
rm -f libgdruntime.so libgphobos.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.6.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.6.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
-%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- rm -f libm2$i.so
- echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > libm2$i.so
- echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libm2$i.so.21.* | sed 's,^.*libm,libm,'`' )' > 32/libm2$i.so
- rm -f 32/m2/m2$i/*.{a,la}
- ln -sf ../../libm2$i.so 32/m2/m2$i/
- ln -sf ../../libm2$i.a 32/m2/m2$i/
-done
-%endif
-%if %{build_cobol}
-rm -f libgcobol.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > libgcobol.so
-#echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgcobol.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgcobol.so
-%endif
-%if %{build_algol68}
-rm -f libga68.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > libga68.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libga68.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libga68.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
%endif
%if %{build_libitm}
rm -f libitm.so
@@ -2236,23 +1661,11 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libitm.so.1.* | sed 's,^.*
rm -f libatomic.so
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > libatomic.so
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libatomic.so.1.* | sed 's,^.*liba,liba,'`' )' > 32/libatomic.so
-mv -f %{buildroot}%{_prefix}/lib/libatomic.*a 32/
-rm -f libatomic_asneeded.so libatomic_asneeded.a 32/libatomic_asneeded.so 32/libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > libatomic_asneeded.so
-ln -sf libatomic.a libatomic_asneeded.a
-echo '/* GNU ld script
- Add DT_NEEDED entry for -latomic only if needed. */
-OUTPUT_FORMAT('`gcc -m32 -Wl,--print-output-format -nostdlib -r -o /dev/null`')
-INPUT ( AS_NEEDED ( -latomic ) )' > 32/libatomic_asneeded.so
-ln -sf libatomic.a 32/libatomic_asneeded.a
%endif
%if %{build_libasan}
rm -f libasan.so
-echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > libasan.so
-echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libasan.so.8.* | sed 's,^.*liba,liba,'`' )' > 32/libasan.so
+echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > libasan.so
+echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libasan.so.6.* | sed 's,^.*liba,liba,'`' )' > 32/libasan.so
mv ../../../../lib/libasan_preinit.o 32/libasan_preinit.o
%endif
%if %{build_libubsan}
@@ -2272,8 +1685,6 @@ ln -sf ../lib32/libstdc++.a 32/libstdc++.a
ln -sf lib64/libstdc++.a libstdc++.a
ln -sf ../lib32/libstdc++fs.a 32/libstdc++fs.a
ln -sf lib64/libstdc++fs.a libstdc++fs.a
-ln -sf ../lib32/libstdc++exp.a 32/libstdc++exp.a
-ln -sf lib64/libstdc++exp.a libstdc++exp.a
ln -sf ../lib32/libsupc++.a 32/libsupc++.a
ln -sf lib64/libsupc++.a libsupc++.a
%if %{build_libquadmath}
@@ -2286,24 +1697,14 @@ ln -sf lib64/libgdruntime.a libgdruntime.a
ln -sf ../lib32/libgphobos.a 32/libgphobos.a
ln -sf lib64/libgphobos.a libgphobos.a
%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- ln -sf ../lib32/libm2$i.a 32/libm2$i.a
- ln -sf lib64/libm2$i.a libm2$i.a
-done
-%endif
-%if %{build_cobol}
-ln -sf ../lib32/libgcobol.a 32/libgcobol.a
-ln -sf lib64/libgcobol.a libgcobol.a
-%endif
-%if %{build_algol68}
-ln -sf ../lib32/libga68.a 32/libga68.a
-ln -sf lib64/libga68.a libga68.a
-%endif
%if %{build_libitm}
ln -sf ../lib32/libitm.a 32/libitm.a
ln -sf lib64/libitm.a libitm.a
%endif
+%if %{build_libatomic}
+ln -sf ../lib32/libatomic.a 32/libatomic.a
+ln -sf lib64/libatomic.a libatomic.a
+%endif
%if %{build_libasan}
ln -sf ../lib32/libasan.a 32/libasan.a
ln -sf lib64/libasan.a libasan.a
@@ -2331,7 +1732,6 @@ ln -sf lib64/adalib adalib
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgfortran.a 32/libgfortran.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++.a 32/libstdc++.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++fs.a 32/libstdc++fs.a
-ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libstdc++exp.a 32/libstdc++exp.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libsupc++.a 32/libsupc++.a
%if %{build_libquadmath}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libquadmath.a 32/libquadmath.a
@@ -2340,20 +1740,12 @@ ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libqua
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgdruntime.a 32/libgdruntime.a
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgphobos.a 32/libgphobos.a
%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libm2$i.a 32/libm2$i.a
-done
-%endif
-%if %{build_cobol}
-#ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libgcobol.a 32/libgcobol.a
-%endif
-%if %{build_algol68}
-ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libga68.a 32/libga68.a
-%endif
%if %{build_libitm}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libitm.a 32/libitm.a
%endif
+%if %{build_libatomic}
+ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libatomic.a 32/libatomic.a
+%endif
%if %{build_libasan}
ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/libasan.a 32/libasan.a
%endif
@@ -2374,8 +1766,7 @@ ln -sf ../../../%{multilib_32_arch}-%{_vendor}-%{_target_os}/%{gcc_major}/adalib
# If we are building a debug package then copy all of the static archives
# into the debug directory to keep them as unstripped copies.
-# if 0%{?_enable_debug_packages}
-%if 0
+%if 0%{?_enable_debug_packages}
for d in . $FULLLSUBDIR; do
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/$d
for f in `find $d -maxdepth 1 -a \
@@ -2387,9 +1778,8 @@ for d in . $FULLLSUBDIR; do
-o -name libgolibbegin.a -o -name libgomp.a \
-o -name libitm.a -o -name liblsan.a \
-o -name libobjc.a -o -name libgdruntime.a -o -name libgphobos.a \
- -o -name libm2\*.a -o -name libquadmath.a -o -name libstdc++.a \
- -o -name libstdc++fs.a -o -name libstdc++exp.a \
- -o -name libsupc++.a -o -name libgcobol.a \
+ -o -name libquadmath.a -o -name libstdc++.a \
+ -o -name libstdc++fs.a -o -name libsupc++.a \
-o -name libtsan.a -o -name libubsan.a \) -a -type f`; do
cp -a $f $RPM_BUILD_ROOT%{_prefix}/lib/debug%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/$d/
done
@@ -2399,11 +1789,10 @@ done
# Strip debug info from Fortran/ObjC/Java static libraries
strip -g `find . \( -name libgfortran.a -o -name libobjc.a -o -name libgomp.a \
-o -name libgcc.a -o -name libgcov.a -o -name libquadmath.a \
- -o -name libgdruntime.a -o -name libgphobos.a -o -name libm2\*.a \
+ -o -name libgdruntime.a -o -name libgphobos.a \
-o -name libitm.a -o -name libgo.a -o -name libcaf\*.a \
-o -name libatomic.a -o -name libasan.a -o -name libtsan.a \
- -o -name libubsan.a -o -name liblsan.a -o -name libcc1.a \
- -o -name libgcobol.a \) \
+ -o -name libubsan.a -o -name liblsan.a -o -name libcc1.a \) \
-a -type f`
popd
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgfortran.so.5.*
@@ -2413,19 +1802,8 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
%endif
%if %{build_d}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.6.*
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.6.*
-%endif
-%if %{build_m2}
-for i in cor iso log min pim; do
- chmod 755 %{buildroot}%{_prefix}/%{_lib}/libm2$i.so.21.*
-done
-%endif
-%if %{build_cobol}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgcobol.so.2.*
-%endif
-%if %{build_algol68}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libga68.so.2.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.1.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.1.*
%endif
%if %{build_libitm}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
@@ -2434,23 +1812,20 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libatomic.so.1.*
%endif
%if %{build_libasan}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.8.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libasan.so.6.*
%endif
%if %{build_libubsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libubsan.so.1.*
%endif
%if %{build_libtsan}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.2.*
-%endif
-%if %{build_libhwasan}
-chmod 755 %{buildroot}%{_prefix}/%{_lib}/libhwasan.so.0.*
+chmod 755 %{buildroot}%{_prefix}/%{_lib}/libtsan.so.0.*
%endif
%if %{build_liblsan}
chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
%endif
%if %{build_go}
# Avoid stripping these libraries and binaries.
-chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.25.*
+chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.16.*
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo
@@ -2467,6 +1842,8 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgnarl*so*
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgnat*so*
%endif
+mv $FULLPATH/include-fixed/syslimits.h $FULLPATH/include/syslimits.h
+mv $FULLPATH/include-fixed/limits.h $FULLPATH/include/limits.h
for h in `find $FULLPATH/include -name \*.h`; do
if grep -q 'It has been auto-edited by fixincludes from' $h; then
rh=`grep -A2 'It has been auto-edited by fixincludes from' $h | tail -1 | sed 's|^.*"\(.*\)".*$|\1|'`
@@ -2510,6 +1887,7 @@ cd ..
rm -f %{buildroot}%{_prefix}/%{_lib}/{libffi*,libiberty.a} || :
rm -f $FULLEPATH/install-tools/{mkheaders,fixincl}
rm -f %{buildroot}%{_prefix}/lib/{32,64}/libiberty.a
+rm -f %{buildroot}%{_prefix}/%{_lib}/libssp*
rm -f %{buildroot}%{_prefix}/%{_lib}/libvtv* || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gfortran || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gccgo || :
@@ -2518,10 +1896,6 @@ rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-ar || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-nm || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcc-ranlib || :
rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gdc || :
-rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gm2 || :
-rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcobc || :
-rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-gcobol || :
-rm -f %{buildroot}%{_prefix}/bin/%{_target_platform}-ga68 || :
%ifarch %{multilib_64_archs}
# Remove libraries for the other arch on multilib arches
@@ -2545,31 +1919,7 @@ rm -rf %{buildroot}%{_prefix}/lib64/go/%{gcc_major}/%{gcc_target_platform}
%endif
%endif
-rm -f %{buildroot}%{_prefix}/lib*/lib*.spec || :
-rm -f %{buildroot}%{_prefix}/lib*/libstdc++.modules.json || :
-rm -f %{buildroot}%{_prefix}/%{_lib}/lib{asan,atomic,gcc_s,gcobol,ga68,gdruntime,gfortran,go,gomp-plugin-*,gomp,gphobos,hwasan}.so || :
-rm -f %{buildroot}%{_prefix}/%{_lib}/lib{itm,lsan,m2{cor,iso,log,min,pim},objc,quadmath,stdc++,tsan,ubsan,gcc_s_asneeded,atomic_asneeded}.so || :
-rm -f %{buildroot}%{_prefix}/%{_lib}/libatomic_asneeded.a || :
-rm -f %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/install-tools/{fixinc.sh,mkinstalldirs} || :
-rm -f %{buildroot}%{_prefix}/share/locale/*/LC_MESSAGES/libstdc++.mo || :
-rm -f %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include-fixed/README || :
-rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ssp || :
-rm -rf %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/install-tools || :
-%ifarch ppc ppc64 ppc64le ppc64p7
-rm -f %{buildroot}%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/{e,n}crt{i,n}.o || :
-%endif
-
-%if %{build_offload_nvptx}
-rm -f %{buildroot}%{_mandir}/man1/*-accel-*nvptx*
-find %{buildroot}%{_prefix}/nvptx-none/lib -name libstdc++.a-gdb.py | xargs rm -f || :
-find %{buildroot}%{_prefix}/nvptx-none/lib -name libstdc++.modules.json | xargs rm -f || :
-%endif
-%if %{build_offload_amdgcn}
-rm -f %{buildroot}%{_mandir}/man1/*-accel-*amdgcn*
-find %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name libstdc++.a-gdb.py | xargs rm -f || :
-find %{buildroot}%{_prefix}/amdgcn-amdhsa/lib -name libstdc++.modules.json | xargs rm -f || :
-%endif
-rm -f %{buildroot}%{_mandir}/man7/{gpl,gfdl,fsf-funding}.7*
+rm -f %{buildroot}%{mandir}/man3/ffi*
# Help plugins find out nvra.
echo gcc-%{version}-%{release}.%{_arch} > $FULLPATH/rpmver
@@ -2579,26 +1929,16 @@ echo gcc-%{version}-%{release}.%{_arch} > $FULLPATH/rpmver
ln -s ../../libexec/gcc/%{gcc_target_platform}/%{gcc_major}/liblto_plugin.so \
%{buildroot}%{_libdir}/bfd-plugins/
-%if %{build_annobin_plugin}
-mkdir -p $FULLPATH/plugin
-rm -f $FULLPATH/plugin/gcc-annobin*
-cp -a %{_builddir}/gcc-%{version}-%{DATE}/annobin-plugin/annobin*/gcc-plugin/.libs/annobin.so.0.0.0 \
- $FULLPATH/plugin/gcc-annobin.so.0.0.0
-ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so.0
-ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so
-%endif
-
%check
cd obj-%{gcc_target_platform}
# run the tests.
LC_ALL=C make %{?_smp_mflags} -k check ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ \
%if 0%{?fedora} >= 20 || 0%{?rhel} > 7
- RUNTESTFLAGS="--target_board=unix/'{-foffload=disable,-fstack-protector-strong/-foffload=disable}'" || :
+ RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector-strong}'" || :
%else
- RUNTESTFLAGS="--target_board=unix/'{-foffload=disable,-fstack-protector/-foffload=disable}'" || :
+ RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}'" || :
%endif
-%if !%{build_annobin_plugin}
if [ -f %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so ]; then
# Test whether current annobin plugin won't fail miserably with the newly built gcc.
echo -e '#include \nint main () { printf ("Hello, world!\\n"); return 0; }' > annobin-test.c
@@ -2629,12 +1969,9 @@ if [ -f %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so
cat ANNOBINOUT ANNOBINRES[12] >> ANNOBINRES
rm -f ANNOBINOUT* ANNOBINRES[12] annobin-test{c,C}
fi
-%endif
echo ====================TESTING=========================
( LC_ALL=C ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
-%if !%{build_annobin_plugin}
[ -f ANNOBINRES ] && cat ANNOBINRES
-%endif
echo ====================TESTING END=====================
mkdir testlogs-%{_target_platform}-%{version}-%{release}
for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
@@ -2654,20 +1991,28 @@ if [ $1 = 0 ]; then
%{_sbindir}/update-alternatives --remove go %{_prefix}/bin/go.gcc
fi
-%{?ldconfig:
# Because glibc Prereq's libgcc and /sbin/ldconfig
# comes from glibc, it might not exist yet when
# libgcc is installed
%post -n libgcc -p
-if posix.access ("%ldconfig", "x") then
- rpm.execute ("%ldconfig")
+if posix.access ("/sbin/ldconfig", "x") then
+ local pid = posix.fork ()
+ if pid == 0 then
+ posix.exec ("/sbin/ldconfig")
+ elseif pid ~= -1 then
+ posix.wait (pid)
+ end
end
%postun -n libgcc -p
-if posix.access ("%ldconfig", "x") then
- rpm.execute ("%ldconfig")
+if posix.access ("/sbin/ldconfig", "x") then
+ local pid = posix.fork ()
+ if pid == 0 then
+ posix.exec ("/sbin/ldconfig")
+ elseif pid ~= -1 then
+ posix.wait (pid)
+ end
end
-}
%ldconfig_scriptlets -n libstdc++
@@ -2677,8 +2022,6 @@ end
%ldconfig_scriptlets -n libgphobos
-%ldconfig_scriptlets -n libgm2
-
%ldconfig_scriptlets -n libgnat
%ldconfig_scriptlets -n libgomp
@@ -2687,9 +2030,7 @@ end
%ldconfig_scriptlets -n libgccjit
-%ldconfig_scriptlets -n libgdiagnostics
-
-%ldconfig_scriptlets -n libquadmath
+%ldconfig_scriptlets -n libgquadmath
%ldconfig_scriptlets -n libitm
@@ -2703,8 +2044,6 @@ end
%ldconfig_scriptlets -n liblsan
-%ldconfig_scriptlets -n libhwasan
-
%ldconfig_scriptlets -n libgo
%files -f %{name}.lang
@@ -2767,8 +2106,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdnoreturn.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdatomic.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gcov.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdckdint.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/stdcountof.h
%ifarch %{ix86} x86_64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xmmintrin.h
@@ -2804,7 +2141,9 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsaveoptintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512cdintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512erintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512pfintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/shaintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm_malloc.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mm3dnow.h
@@ -2826,6 +2165,8 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/xsavesintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/clzerointrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/pkuintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124fmapsintrin.h
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx5124vnniwintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vpopcntdqintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sgxintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/gfniintrin.h
@@ -2849,46 +2190,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/enqcmdintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512vp2intersectvlintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/serializeintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tsxldtrkintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxtileintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxint8intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxbf16intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86gprintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/uintrintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/hresetintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/keylockerintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/mwaitintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fp16intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512fp16vlintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxifmaintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniint8intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxneconvertintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/cmpccxaddintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxfp16intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/prfchiintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/raointintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxcomplexintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bitalgvlintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avxvnniint16intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sha512intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sm3intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sm4intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/usermsrintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxavx512intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxfp8intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxmovrsintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amxtf32intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2bf16intrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2convertintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2copyintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2mediaintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2minmaxintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx10_2satcvtintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/movrsintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bmmintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/avx512bmmvlintrin.h
%endif
%ifarch ia64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/ia64intrin.h
@@ -2913,10 +2214,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/tmmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/smmintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/amo.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/nmmintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/immintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/x86gprintrin.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/rs6000-vecdefines.h
%endif
%ifarch %{arm}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/unwind-arm-common.h
@@ -2933,10 +2230,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_fp16.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_bf16.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_sve.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_sme.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_neon_sve_bridge.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_private_fp8.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/arm_private_neon_types.h
%endif
%ifarch sparc sparcv9 sparc64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/visintrin.h
@@ -2947,14 +2240,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/htmxlintrin.h
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/vecintrin.h
%endif
-%ifarch riscv64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_vector.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_crypto.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_bitmanip.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/riscv_th_vector.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sifive_vector.h
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/andes_vector.h
-%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/include/sanitizer
%endif
@@ -2964,7 +2249,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.spec
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgomp.so
@@ -2974,9 +2258,6 @@ end
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsanitizer.spec
%endif
-%if %{build_isl}
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libisl.so.*
-%endif
%ifarch sparcv9 ppc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/crt*.o
@@ -2984,7 +2265,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libgomp.so
%if %{build_libquadmath}
@@ -2998,8 +2278,6 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic_asneeded.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libasan.a
@@ -3018,7 +2296,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcov.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_eh.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgcc_s_asneeded.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libgomp.so
%if %{build_libquadmath}
@@ -3032,8 +2309,6 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic_asneeded.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libasan.a
@@ -3057,8 +2332,6 @@ end
%if %{build_libatomic}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.a
@@ -3071,10 +2344,7 @@ end
%endif
%else
%if %{build_libatomic}
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic_asneeded.so
%endif
%if %{build_libasan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libasan.so
@@ -3088,16 +2358,12 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libtsan_preinit.o
%endif
-%if %{build_libhwasan}
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libhwasan.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libhwasan_preinit.o
-%endif
%if %{build_liblsan}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/liblsan_preinit.o
%endif
%{_prefix}/libexec/getconf/default
-%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog*
+%doc gcc/README* rpm.doc/changelogs/gcc/ChangeLog*
%{!?_licensedir:%global license %%doc}
%license gcc/COPYING* COPYING.RUNTIME
@@ -3129,13 +2395,11 @@ end
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1plus
-%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/g++-mapper-server
%ifarch sparcv9 ppc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libstdc++exp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libsupc++.a
%endif
%ifarch %{multilib_64_archs}
@@ -3143,7 +2407,6 @@ end
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.so
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libstdc++exp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libsupc++.a
%endif
%ifarch sparcv9 ppc %{multilib_64_archs}
@@ -3152,7 +2415,6 @@ end
%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++exp.a
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libsupc++.a
%endif
%doc rpm.doc/changelogs/gcc/cp/ChangeLog*
@@ -3182,20 +2444,16 @@ end
%ifnarch sparcv9 ppc %{multilib_64_archs}
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.so
%endif
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++.modules.json
%ifarch sparcv9 ppc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libstdc++exp.a
%endif
%ifarch sparc64 ppc64 ppc64p7
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libstdc++exp.a
%endif
%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++fs.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libstdc++exp.a
%endif
%doc rpm.doc/changelogs/libstdc++-v3/ChangeLog* libstdc++-v3/README*
@@ -3366,8 +2624,8 @@ end
%doc rpm.doc/gdc/*
%files -n libgphobos
-%{_prefix}/%{_lib}/libgdruntime.so.6*
-%{_prefix}/%{_lib}/libgphobos.so.6*
+%{_prefix}/%{_lib}/libgdruntime.so.1*
+%{_prefix}/%{_lib}/libgphobos.so.1*
%doc rpm.doc/libphobos/*
%files -n libgphobos-static
@@ -3390,133 +2648,6 @@ end
%endif
%endif
-%if %{build_m2}
-%files gm2
-%{_prefix}/bin/gm2
-%{_mandir}/man1/gm2.1*
-%{_infodir}/m2*
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%dir %{_prefix}/libexec/gcc
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/m2
-%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cc1gm2
-%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libm2*.a
-%endif
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libm2*.so
-%ifarch sparcv9 ppc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/m2
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libm2*.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libm2*.so
-%endif
-%ifarch %{multilib_64_archs}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/m2
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libm2*.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libm2*.so
-%endif
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/m2rte.so
-%doc rpm.doc/gm2/*
-
-%files -n libgm2
-%{_prefix}/%{_lib}/libm2*.so.21*
-%doc rpm.doc/libgm2/*
-
-%files -n libgm2-static
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%ifarch sparcv9 ppc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libm2*.a
-%endif
-%ifarch sparc64 ppc64 ppc64p7
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libm2*.a
-%endif
-%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libm2*.a
-%endif
-%endif
-
-%if %{build_cobol}
-%files gcobol
-%{_prefix}/bin/gcobol
-%{_prefix}/bin/gcobc
-%{_mandir}/man1/gcobol.1*
-%{_mandir}/man3/gcobol-io.3*
-%dir %{_prefix}/libexec/gcc
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
-%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cobol1
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.spec
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/cobol
-%doc rpm.doc/gcobol/*
-
-%files -n libgcobol
-%{_prefix}/%{_lib}/libgcobol.so.2*
-%doc rpm.doc/libgcobol/*
-
-%files -n libgcobol-static
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libgcobol.a
-%endif
-
-%if %{build_algol68}
-%files algol68
-%{_prefix}/bin/ga68
-%{_mandir}/man1/ga68.1*
-%dir %{_prefix}/libexec/gcc
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
-%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/a681
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.spec
-%ifarch sparcv9 sparc64 ppc ppc64 ppc64p7
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.a
-%endif
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.so
-%ifarch sparcv9 ppc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libga68.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/64/libga68.so
-%endif
-%ifarch %{multilib_64_archs}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libga68.a
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/32/libga68.so
-%endif
-%{_infodir}/ga68*
-%doc rpm.doc/algol68/*
-
-%files -n libga68
-%{_prefix}/%{_lib}/libga68.so.2*
-%doc rpm.doc/libga68/*
-
-%files -n libga68-static
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%ifarch sparcv9 ppc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libga68.a
-%endif
-%ifarch sparc64 ppc64 ppc64p7
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libga68.a
-%endif
-%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libga68.a
-%endif
-%endif
-
%if %{build_ada}
%files gnat
%{_prefix}/bin/gnat
@@ -3678,12 +2809,28 @@ end
%if %{build_libatomic}
%files -n libatomic
%{_prefix}/%{_lib}/libatomic.so.1*
+
+%files -n libatomic-static
+%dir %{_prefix}/lib/gcc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
+%ifarch sparcv9 ppc
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib32/libatomic.a
+%endif
+%ifarch sparc64 ppc64 ppc64p7
+%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/lib64/libatomic.a
+%endif
+%ifnarch sparcv9 sparc64 ppc ppc64 ppc64p7
+%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libatomic.a
+%endif
%doc rpm.doc/changelogs/libatomic/ChangeLog*
%endif
%if %{build_libasan}
%files -n libasan
-%{_prefix}/%{_lib}/libasan.so.8*
+%{_prefix}/%{_lib}/libasan.so.6*
%files -n libasan-static
%dir %{_prefix}/lib/gcc
@@ -3731,7 +2878,7 @@ end
%if %{build_libtsan}
%files -n libtsan
-%{_prefix}/%{_lib}/libtsan.so.2*
+%{_prefix}/%{_lib}/libtsan.so.0*
%files -n libtsan-static
%dir %{_prefix}/lib/gcc
@@ -3743,20 +2890,6 @@ end
%license libsanitizer/LICENSE.TXT
%endif
-%if %{build_libhwasan}
-%files -n libhwasan
-%{_prefix}/%{_lib}/libhwasan.so.0*
-
-%files -n libhwasan-static
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/libhwasan.a
-%doc rpm.doc/changelogs/libsanitizer/ChangeLog*
-%{!?_licensedir:%global license %%doc}
-%license libsanitizer/LICENSE.TXT
-%endif
-
%if %{build_liblsan}
%files -n liblsan
%{_prefix}/%{_lib}/liblsan.so.0*
@@ -3817,8 +2950,7 @@ end
%doc rpm.doc/go/*
%files -n libgo
-%{_prefix}/%{_lib}/libgo.so.25
-%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.25.*
+%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.16*
%doc rpm.doc/libgo/*
%files -n libgo-devel
@@ -3879,15 +3011,6 @@ end
%doc rpm.doc/libgccjit-devel/*
%doc gcc/jit/docs/examples
-%files -n libgdiagnostics
-%{_prefix}/bin/sarif-replay
-%{_prefix}/%{_lib}/libgdiagnostics.so.*
-
-%files -n libgdiagnostics-devel
-%{_prefix}/%{_lib}/libgdiagnostics.so
-%{_prefix}/include/libgdiagnostics*.h
-%doc rpm.doc/libgdiagnostics-devel/*
-
%files plugin-devel
%dir %{_prefix}/lib/gcc
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
@@ -3934,130 +3057,542 @@ end
%{_prefix}/%{_lib}/libgomp-plugin-nvptx.so.*
%endif
-%if %{build_offload_amdgcn}
-%files offload-amdgcn
-%{_prefix}/bin/amdgcn-amdhsa-*
-%{_prefix}/bin/%{gcc_target_platform}-accel-amdgcn-amdhsa-gcc
-%{_prefix}/bin/%{gcc_target_platform}-accel-amdgcn-amdhsa-lto-dump
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel
-%dir %{_prefix}/libexec/gcc
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
-%dir %{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel
-%{_prefix}/lib/gcc/amdgcn-amdhsa
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa
-%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/accel/amdgcn-amdhsa
-%dir %{_prefix}/amdgcn-amdhsa
-%{_prefix}/amdgcn-amdhsa/bin
-%{_prefix}/amdgcn-amdhsa/include
-
-%files -n libgomp-offload-amdgcn
-%{_prefix}/%{_lib}/libgomp-plugin-gcn.so.*
-%endif
-
-%if %{build_annobin_plugin}
-%files plugin-annobin
-%dir %{_prefix}/lib/gcc
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
-%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/gcc-annobin.so
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/gcc-annobin.so.0
-%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/gcc-annobin.so.0.0.0
-%endif
-
%changelog
-* Thu Jan 15 2026 Jakub Jelinek 16.0.1-0.3
-- update from trunk
- - PRs c/123309, c++/120775, c++/122634, c++/123081, c++/123551,
- debug/121045, driver/108865, driver/123504, ipa/122852, ipa/123542,
- middle-end/123115, middle-end/123392, middle-end/123573,
- rtl-optimization/123312, rtl-optimization/123544, target/38118,
- target/114528, target/120250, target/121240, target/123092,
- testsuite/122522, tree-optimization/119402, tree-optimization/120322,
- tree-optimization/123109, tree-optimization/123190,
- tree-optimization/123530
+* Thu Apr 22 2021 Jakub Jelinek 10.3.1-1
+- update from releases/gcc-10 branch
+ - GCC 10.3 release
+ - PRs ada/99095, ada/99264, bootstrap/99983, c++/20408, c++/82959,
+ c++/83476, c++/88146, c++/91416, c++/95434, c++/95451, c++/95468,
+ c++/95486, c++/95615, c++/95616, c++/95675, c++/95822, c++/95888,
+ c++/96078, c++/96251, c++/96282, c++/96531, c++/96749, c++/96905,
+ c++/97051, c++/97052, c++/97103, c++/97246, c++/97587, c++/97742,
+ c++/97804, c++/97878, c++/97966, c++/97973, c++/98118, c++/98295,
+ c++/98326, c++/98333, c++/98355, c++/98480, c++/98481, c++/98611,
+ c++/98704, c++/98717, c++/98802, c++/98810, c++/98947, c++/98988,
+ c++/98990, c++/99031, c++/99033, c++/99035, c++/99047, c++/99062,
+ c++/99120, c++/99176, c++/99318, c++/99331, c++/99362, c++/99374,
+ c++/99507, c++/99613, c++/99650, c++/99705, c++/99745, c++/99790,
+ c++/99806, c++/99831, c++/99833, c++/99859, c++/99885, c++/100111,
+ c/97880, c/99136, c/99137, c/99224, c/99324, c/99363, c/99588,
+ c/99990, d/98457, d/98921, d/99337, debug/96997, debug/98656,
+ debug/99334, debug/99388, debug/99830, fortran/63797, fortran/93660,
+ fortran/97927, fortran/98897, fortran/99027, fortran/99043,
+ fortran/99060, fortran/99111, fortran/99124, fortran/99171,
+ fortran/99205, fortran/99369, fortran/99545, fortran/99651,
+ fortran/99688, fortran/99817, fortran/99840, go/99458, ipa/98078,
+ ipa/98265, ipa/98338, ipa/99034, ipa/99466, ipa/99517, jit/100096,
+ libfortran/95647, libfortran/99218, libstdc++/82584, libstdc++/88881,
+ libstdc++/93151, libstdc++/95592, libstdc++/95765, libstdc++/96029,
+ libstdc++/96592, libstdc++/97570, libstdc++/97600, libstdc++/98226,
+ libstdc++/98319, libstdc++/99021, libstdc++/99058, libstdc++/99077,
+ libstdc++/99096, libstdc++/99181, libstdc++/99402, libstdc++/99533,
+ libstdc++/99536, libstdc++/99537, libstdc++/99805, libstdc++/99985,
+ libstdc++/100044, libstdc++/100060, libstdc++/100180, lto/96591,
+ lto/99849, lto/99898, middle-end/84991, middle-end/84992,
+ middle-end/90779, middle-end/93235, middle-end/97487,
+ middle-end/97971, middle-end/98088, middle-end/99007,
+ middle-end/99641, objc++/49070, preprocessor/95253,
+ rtl-optimization/96015, rtl-optimization/96264,
+ rtl-optimization/98144, rtl-optimization/98601,
+ rtl-optimization/98791, rtl-optimization/98863,
+ rtl-optimization/99863, rtl-optimization/99905,
+ rtl-optimization/100148, sanitizer/96318, sanitizer/99106,
+ sanitizer/100114, target/44107, target/48097, target/85074,
+ target/95842, target/96307, target/96974, target/97252, target/97329,
+ target/97653, target/97701, target/98959, target/99037, target/99041,
+ target/99085, target/99157, target/99234, target/99271, target/99279,
+ target/99381, target/99540, target/99542, target/99563, target/99702,
+ target/99704, target/99753, target/99767, target/99808, target/99813,
+ target/100048, testsuite/99233, testsuite/99626, testsuite/99636,
+ testsuite/100176, tree-optimization/96974, tree-optimization/97009,
+ tree-optimization/97849, tree-optimization/97897,
+ tree-optimization/98287, tree-optimization/98526,
+ tree-optimization/98640, tree-optimization/98758,
+ tree-optimization/98834, tree-optimization/99079,
+ tree-optimization/99204, tree-optimization/99225,
+ tree-optimization/99253, tree-optimization/99694,
+ tree-optimization/99777, tree-optimization/99824,
+ tree-optimization/99856
-* Tue Jan 13 2026 Jakub Jelinek 16.0.1-0.2
-- update from trunk
- - PRs fortran/91960, fortran/112460, libstdc++/123396,
- rtl-optimization/123444, rtl-optimization/123501, target/117581,
- target/123484, testsuite/123098, tree-optimization/122843,
- tree-optimization/122845, tree-optimization/123301,
- tree-optimization/123525, tree-optimization/123539
+* Sat Jan 30 2021 Jakub Jelinek 10.2.1-11
+- update from releases/gcc-10 branch
+ - PRs ada/98228, c++/33661, c++/63707, c++/97474, c++/98463, c++/98642,
+ c++/98672, c++/98790, c++/98847, d/98806, debug/98331, fortran/86470,
+ fortran/93833, fortran/98022, fortran/98517, gcov-profile/98739,
+ lto/85574, sanitizer/95693, target/98681, target/98853,
+ testsuite/97301, testsuite/98771, tree-optimization/90248,
+ tree-optimization/97627, tree-optimization/98255,
+ tree-optimization/98535, tree-optimization/98766
-* Mon Jan 12 2026 Jakub Jelinek 16.0.1-0.1
-- update from trunk
- - PRs c++/81337, c++/115163, c++/123526, fortran/77415, ipa/122458,
- ipa/123543, libfortran/123012, middle-end/123175,
- rtl-optimization/123523, target/123415, testsuite/121752,
- testsuite/123129, tree-optimization/122824, tree-optimization/122830,
- tree-optimization/123417, tree-optimization/123528
+* Tue Jan 19 2021 Jakub Jelinek 10.2.1-10
+- update from releases/gcc-10 branch
+ - PRs ada/98230, ada/98740, c++/64194, c++/82099, c++/90254, c++/93083,
+ c++/93711, c++/96197, c++/96504, c++/96675, c++/96742, c++/97427,
+ c++/97438, c++/97904, c++/97975, c++/98043, c++/98072, c++/98103,
+ c++/98122, c++/98187, c++/98332, c++/98353, c++/98383, c++/98551,
+ c++/98556, d/98277, fortran/83118, fortran/85796, fortran/92587,
+ fortran/95342, fortran/96012, fortran/96100, fortran/96101,
+ fortran/96325, fortran/98307, ipa/98690, libgomp/65099,
+ libstdc++/65480, libstdc++/68735, libstdc++/96083, libstdc++/97935,
+ libstdc++/98001, libstdc++/98605, middle-end/95171, middle-end/95694,
+ middle-end/97554, middle-end/98183, middle-end/98205, plugins/98059,
+ rtl-optimization/97092, rtl-optimization/97144,
+ rtl-optimization/97421, rtl-optimization/98037,
+ rtl-optimization/98214, target/89057, target/94440, target/96320,
+ target/96470, target/96607, target/96793, target/97865, target/97939,
+ target/98063, target/98086, target/98100, target/98521, target/98522,
+ testsuite/98002, testsuite/98036, tree-optimization/94994,
+ tree-optimization/95401, tree-optimization/96698,
+ tree-optimization/96920, tree-optimization/97457,
+ tree-optimization/97539, tree-optimization/97623,
+ tree-optimization/97760, tree-optimization/97812,
+ tree-optimization/98117, tree-optimization/98221,
+ tree-optimization/98282, tree-optimization/98302,
+ tree-optimization/98371, tree-optimization/98474,
+ tree-optimization/98513, tree-optimization/98514
-* Sat Jan 10 2026 Jakub Jelinek 16.0.0-0.5
-- update from trunk
- - PRs ada/123003, ada/123371, ada/123490, c/117687, c/121081, c/121507,
- c/123212, c/123435, c/123463, c/123475, c++/123331, c++/123347,
- c++/123393, debug/123259, fortran/90218, fortran/123012,
- fortran/123029, fortran/123071, fortran/123321, fortran/123352,
- fortran/123483, gcov-profile/123019, ipa/123383, libstdc++/122878,
- libstdc++/123100, libstdc++/123183, libstdc++/123326,
- libstdc++/123378, libstdc++/123406, middle-end/111817,
- middle-end/123107, rtl-optimization/119291, rtl-optimization/121675,
- rtl-optimization/121773, rtl-optimization/123121,
- rtl-optimization/123491, target/119430, target/121192, target/121290,
- target/121535, target/121778, target/122846, target/123010,
- target/123017, target/123268, target/123269, target/123317,
- target/123320, target/123390, target/123403, target/123457,
- target/123489, target/123492, testsuite/123353, testsuite/123377,
- tree-optimization/42196, tree-optimization/102486,
- tree-optimization/102954, tree-optimization/122103,
- tree-optimization/122608, tree-optimization/122793,
- tree-optimization/123197, tree-optimization/123200,
- tree-optimization/123221, tree-optimization/123298,
- tree-optimization/123300, tree-optimization/123310,
- tree-optimization/123315, tree-optimization/123316,
- tree-optimization/123319, tree-optimization/123351,
- tree-optimization/123372, tree-optimization/123374,
- tree-optimization/123382, tree-optimization/123414,
- tree-optimization/123431
-- fix ICE on friend with noexcept (PR c++/123189)
-- fix -E -fdirectives-only comment handling (PR preprocessor/123273)
-- provide libatomic-static from gcc subpackage
+* Wed Nov 25 2020 Jakub Jelinek 10.2.1-9
+- update from releases/gcc-10 branch
+ - PRs c++/67453, c++/96805, c++/97663, c++/97790, c/97748, c/97958, d/97842,
+ d/97843, d/97889, fortran/95847, fortran/97782, libstdc++/93456,
+ libstdc++/95989, libstdc++/96042, libstdc++/97798, libstdc++/97828,
+ libstdc++/97869, libstdc++/97876, target/97528, target/97534,
+ target/97535, target/97682, target/97727, target/97730, target/97887
+ - fix LTO -g ICE on firefox 83 (#1899294, PR c++/97918)
+ - fix DW_TAG_unspecified_parameters for LTO or function clones
+ (#1893340, PR debug/97599)
-* Sat Jan 3 2026 Jakub Jelinek 16.0.0-0.4
-- update from trunk
- - PRs ada/123060, ada/123088, ada/123185, ada/123289, ada/123302,
- ada/123306, ada/15605, c++/117518, c++/119097, c++/120005, c++/121864,
- c++/122550, c++/122690, c++/122712, c++/122819, c++/122958,
- c++/122994, c++/123080, c++/123261, c++/123277, fortran/101399,
- fortran/121472, fortran/121475, fortran/122957, fortran/123201,
- fortran/123253, libfortran/119136, middle-end/123067,
- middle-end/123222, other/122243, rtl-optimization/123114,
- rtl-optimization/123267, rtl-optimization/123276,
- rtl-optimization/123295, rtl-optimization/123308, target/121485,
- target/122769, target/123216, target/123217, target/123274,
- target/123278, target/123283, target/123318, testsuite/123299,
- testsuite/123334, tree-optimization/123089
-- require libatomic package from gcc package as -latomic is now linked
- as-needed by default
-- remove libatomic-static package, move libatomic.a into gcc package
+* Thu Nov 12 2020 Jakub Jelinek 10.2.1-8
+- update from releases/gcc-10 branch
+ - PRs c++/97412, fortran/92793, fortran/97652, libstdc++/92285,
+ libstdc++/96269, libstdc++/97362, libstdc++/97731, middle-end/97392,
+ target/85486, target/97360, target/97638, target/97685,
+ testsuite/80219, testsuite/85303, testsuite/97688, testsuite/97797,
+ tree-optimization/97633, tree-optimization/97764
+ - fix up Fortran ICE on operator with CHARACTER operand (#1895612,
+ PR fortran/97768)
+- emit DW_AT_declaration on declaration-only DIEs (#1889516, PR debug/97060)
+- add BuildRequires: make and Requires: make, the latter for -flto reasons
-* Sat Dec 20 2025 Jakub Jelinek 16.0.0-0.3
-- update from trunk
- - PRs bootstrap/12407, c/123156, c++/91388, c++/117034, c++/122070,
- c++/122509, c++/122690, c++/122712, c++/122772, c++/122834,
- c++/122922, c++/122995, c++/123030, c++/123044, c++/123186,
- debug/122968, fortran/71565, fortran/92613, libstdc++/112591,
- libstdc++/123147, libstdc++/123180, rtl-optimization/123223,
- target/55212, target/122970, target/123171, target/123216,
- target/123217, tree-optimization/122734, tree-optimization/123097,
- tree-optimization/123117, tree-optimization/123118,
- tree-optimization/123152, tree-optimization/123153,
- tree-optimization/123192, tree-optimization/123205
+* Mon Nov 2 2020 Jakub Jelinek 10.2.1-7
+- update from releases/gcc-10 branch
+ - PRs c++/95132, c++/96241, c++/97010, c++/97197, c++/97328, fortran/95979,
+ ipa/96394, ipa/97404, libstdc++/97132, lto/97508,
+ rtl-optimization/97386, rtl-optimization/97439, sanitizer/97294,
+ sanitizer/97414, target/96759, target/96914, target/97291,
+ target/97327, target/97506, testsuite/95886, tree-optimization/97081,
+ tree-optimization/97456
-* Thu Dec 18 2025 Jakub Jelinek 16.0.0-0.2
+* Fri Oct 16 2020 Jakub Jelinek 10.2.1-6
+- update from releases/gcc-10 branch
+ - PRs c++/88115, c++/96229, fortran/97272, libstdc++/95788, libstdc++/97273,
+ lto/97290, middle-end/95189, middle-end/95886, rtl-optimization/97313,
+ target/96313, target/96456, target/97150, target/97251, target/97302,
+ target/97349, tree-optimization/97236, tree-optimization/97255,
+ tree-optimization/97357
+ - fix ICE on building Firefox with LTO+PGO (#1886399, PR ipa/97295)
+
+* Mon Oct 5 2020 Jakub Jelinek 10.2.1-5
+- update from releases/gcc-10 branch
+ - PRs bootstrap/97163, bootstrap/97183, c++/96994, c++/97145, c++/97195,
+ fortran/93423, fortran/95614, fortran/96041, gcov-profile/64636,
+ gcov-profile/96913, gcov-profile/97069, gcov-profile/97193,
+ libstdc++/94160, libstdc++/94681, libstdc++/96803, libstdc++/97101,
+ libstdc++/97167, middle-end/95464, middle-end/97054, middle-end/97073,
+ preprocessor/96935, target/71233, target/96683, target/96795,
+ target/96827, target/97166, target/97184, target/97231, target/97247,
+ tree-optimization/96979, tree-optimization/97053
+
+* Wed Sep 16 2020 Jakub Jelinek 10.2.1-4
+- update from releases/gcc-10 branch
+ - PRs bootstrap/96203, c++/95164, c++/96862, c++/96901, d/96157, d/96924,
+ debug/93865, debug/94235, debug/96729, fortran/94690, fortran/95109,
+ fortran/95398, fortran/95882, fortran/96859, libstdc++/71960,
+ libstdc++/92978, libstdc++/96766, libstdc++/96851, lto/94311,
+ middle-end/87256, middle-end/96369, target/85830, target/94538,
+ target/96357, target/96551, target/96574, target/96744, target/96808,
+ target/97028, tree-optimization/88240, tree-optimization/96349,
+ tree-optimization/96370, tree-optimization/96514,
+ tree-optimization/96522, tree-optimization/96579,
+ tree-optimization/96597, tree-optimization/96820,
+ tree-optimization/96854, tree-optimization/97043
+- fix up ARM target attribute/pragma handling (#1875814, PR target/96939)
+- don't ICE on sp clobbers with -mincoming-stack-boundary=2 on ia32
+ (#1862029, PR target/97032)
+
+* Wed Aug 26 2020 Jakub Jelinek 10.2.1-3
+- update from releases/gcc-10 branch
+ - PRs c++/95428, c++/96082, c++/96106, c++/96164, c++/96199, c++/96497,
+ c/96545, c/96549, c/96571, d/96250, d/96254, d/96301, debug/96354,
+ fortran/93553, fortran/96312, fortran/96486, ipa/95320, ipa/96291,
+ ipa/96482, libstdc++/89760, libstdc++/95749, libstdc++/96303,
+ libstdc++/96484, libstdc++/96718, lto/95362, lto/95548,
+ middle-end/96426, middle-end/96459, target/93897, target/95450,
+ target/96191, target/96243, target/96446, target/96493, target/96506,
+ target/96525, target/96530, target/96536, target/96562, target/96682,
+ tree-optimization/96483, tree-optimization/96535,
+ tree-optimization/96722, tree-optimization/96730,
+ tree-optimization/96758
+- mangle some further symbols needed for debug info during early dwarf
+ (#1862029, PR debug/96690)
+- during %%check perform tests whether annobin is usable with the newly built
+ compiler or whether it might need to be rebuilt
+- disable graphite for ELN
+
+* Tue Aug 4 2020 Jakub Jelinek 10.2.1-2
+- update from releases/gcc-10 branch
+ - PRs c++/95591, c++/95599, c++/95823, c++/95824, c++/95895, c/96377,
+ d/96140, fortran/89574, fortran/93567, fortran/93592, fortran/95585,
+ fortran/95612, fortran/95980, fortran/96018, fortran/96086,
+ fortran/96220, fortran/96319, lto/45375, middle-end/96335,
+ target/95435, target/96190, target/96236, target/96260, target/96402,
+ tree-optimization/96058
+- emit debug info for C/C++ external function declarations used in the TU
+ (PR debug/96383)
+- discard SHN_UNDEF global symbols from LTO debuginfo (PR lto/96385)
+- strip also -flto=auto from optflags
+
+* Thu Jul 23 2020 Jakub Jelinek 10.2.1-1
+- update from releases/gcc-10 branch
+ - GCC 10.2 release
+ - PRs bootstrap/94998, c++/90916, c++/95477, c++/95505, c++/95518,
+ c++/95519, c++/95711, c++/95719, c++/95736, c++/95789, c++/95813,
+ c++/95976, c++/96052, c++/96063, c++/96077, c++/96104, c++/96105,
+ c++/96179, c/95141, d/95173, d/95250, debug/95343, fortran/71706,
+ fortran/88379, fortran/93337, fortran/95340, fortran/95366,
+ fortran/95587, fortran/95687, fortran/95688, fortran/95689,
+ fortran/95707, fortran/95708, fortran/95709, fortran/95743,
+ fortran/95812, fortran/95826, fortran/95827, fortran/95828,
+ fortran/95829, fortran/95880, fortran/95881, fortran/95978,
+ ipa/12345, ipa/93223, ipa/96040, ipa/96130, libstdc++/91153,
+ libstdc++/91807, libstdc++/94087, libstdc++/94627, libstdc++/94936,
+ libstdc++/95282, libstdc++/95851, libstdc++/95915, lto/91576,
+ lto/95604, middle-end/94600, middle-end/94964, middle-end/95114,
+ middle-end/95118, middle-end/95270, middle-end/95493,
+ middle-end/95690, middle-end/95810, middle-end/95903,
+ middle-end/96194, target/12345, target/93224, target/93492,
+ target/94791, target/94891, target/95018, target/95105, target/95347,
+ target/95581, target/95683, target/95713, target/95726, target/95874,
+ target/96001, target/96125, target/96174, testsuite/96180,
+ tree-optimization/90838, tree-optimization/94969,
+ tree-optimization/95049, tree-optimization/95110,
+ tree-optimization/95133, tree-optimization/95308,
+ tree-optimization/95487, tree-optimization/95638,
+ tree-optimization/95717, tree-optimization/95804,
+ tree-optimization/95857, tree-optimization/96075,
+ tree-optimization/96133, tree-optimization/96146
+ - disable s390x multilibs also for ELN
+ - disable -flto in %%{optflags}, lto bootstrap will be enabled the GCC way
+ later
+
+* Thu Jun 18 2020 Jakub Jelinek 10.1.1-2
+- update from releases/gcc-10 branch
+ - PRs c++/90212, c++/90479, c++/90915, c++/91529, c++/92103, c++/92633,
+ c++/92652, c++/92838, c++/93310, c++/93467, c++/93698, c++/93822,
+ c++/94128, c++/94817, c++/94829, c++/94885, c++/94937, c++/94955,
+ c++/95003, c++/95020, c++/95050, c++/95066, c++/95087, c++/95137,
+ c++/95158, c++/95181, c++/95197, c++/95222, c++/95241, c++/95319,
+ c++/95328, c++/95344, c++/95345, c++/95346, c++/95350, c++/95371,
+ c++/95386, c++/95440, c++/95508, c++/95560, c++/95562, c/95040,
+ c/95580, d/94970, d/95166, d/95167, d/95168, debug/95080,
+ fortran/39695, fortran/50392, fortran/59107, fortran/92993,
+ fortran/93366, fortran/93497, fortran/94109, fortran/94361,
+ fortran/94397, fortran/94672, fortran/95088, fortran/95090,
+ fortran/95091, fortran/95106, fortran/95373, fortran/95500,
+ fortran/95503, fortran/95530, fortran/95537, fortran/95544,
+ fortran/95611, gcov-profile/95332, ipa/94947, ipa/95113,
+ libfortran/95104, libfortran/95119, libfortran/95191,
+ libfortran/95390, libgomp/92854, libstdc++/77691, libstdc++/92894,
+ libstdc++/93983, libstdc++/94906, libstdc++/94933, libstdc++/95289,
+ libstdc++/95322, libstdc++/95578, lto/94848, lto/95190,
+ middle-end/94940, middle-end/95108, middle-end/95551,
+ middle-end/95622, sanitizer/94910, sanitizer/95634, target/91695,
+ target/94591, target/94735, target/94959, target/95169, target/95212,
+ target/95220, target/95255, target/95258, target/95355, target/95420,
+ target/95525, target/95528, testsuite/95361, testsuite/95575,
+ web/95380
+- correct instructions for creation of newlib tarball, filter out sun-rpc
+ licensed code that is never used during the package build
+
+* Mon May 11 2020 Tom Stellard
+- add symlink to liblto_plugin.so in /usr/lib/bfd-plugins
+
+* Thu May 7 2020 Jakub Jelinek 10.1.1-1
+- update from releases/gcc-10 branch
+ - GCC 10.1.0 release
+ - PRs bootstrap/94918, c++/94907, c++/94938, c++/94946, c++/94951, c/94842,
+ c/94968, libstdc++/94901, middle-end/94941, rtl-optimization/94873,
+ target/94942, target/94950
+
+* Sat May 2 2020 Jakub Jelinek 10.0.1-0.14
+- use libgcc_s.so linker script also on aarch64 and riscv64 (#1830472)
+
+* Fri May 1 2020 Jakub Jelinek 10.0.1-0.13
+- update from trunk and releases/gcc-10 branch
+ - GCC 10.1-rc1
+ - PRs analyzer/94447, analyzer/94639, analyzer/94732, analyzer/94754,
+ analyzer/94816, bootstrap/94739, c++/79585, c++/90320, c++/90448,
+ c++/90750, c++/93807, c++/94288, c++/94383, c++/94505, c++/94510,
+ c++/94546, c++/94549, c++/94583, c++/94592, c++/94597, c++/94628,
+ c++/94645, c++/94661, c++/94682, c++/94701, c++/94719, c++/94733,
+ c++/94742, c++/94752, c++/94759, c++/94760, c++/94772, c++/94775,
+ c++/94808, c++/94819, c++/94827, c++/94830, c++/94879, c++/94883,
+ c++/94886, c/94641, c/94686, c/94705, c/94755, d/89418, d/94777,
+ d/94825, demangler/94797, driver/90983, fortran/90350, fortran/93956,
+ fortran/94578, fortran/94709, fortran/94737, fortran/94769,
+ fortran/94788, ipa/94856, libfortran/25830, libfortran/94586,
+ libfortran/94694, libstdc++/89510, libstdc++/90415, libstdc++/91480,
+ libstdc++/92156, libstdc++/94831, libstdc++/94854, lto/94659,
+ lto/94822, middle-end/92830, middle-end/93488, middle-end/94647,
+ middle-end/94724, rtl-optimization/94708, rtl-optimization/94740,
+ target/57002, target/91518, target/92713, target/93654, target/94248,
+ target/94279, target/94282, target/94383, target/94514, target/94515,
+ target/94577, target/94613, target/94622, target/94668, target/94678,
+ target/94697, target/94704, target/94706, target/94707, target/94710,
+ target/94711, target/94748, target/94780, target/94812, target/94820,
+ target/94826, target/94832, testsuite/94712, translation/94698,
+ tree-optimization/89430, tree-optimization/94683,
+ tree-optimization/94700, tree-optimization/94717,
+ tree-optimization/94727, tree-optimization/94734,
+ tree-optimization/94774, tree-optimization/94784,
+ tree-optimization/94809
+
+* Mon Apr 20 2020 Jakub Jelinek 10.0.1-0.12
+- update from trunk
+ - PRs analyzer/94378, bootstrap/89494, bootstrap/92008, c++/67825,
+ c++/79937, c++/85278, c++/86327, c++/88754, c++/90711, c++/90996,
+ c++/91377, c++/91966, c++/92010, c++/92187, c++/92878, c++/93207,
+ c++/93211, c++/93790, c++/94034, c++/94149, c++/94155, c++/94205,
+ c++/94219, c++/94252, c++/94306, c++/94314, c++/94325, c++/94359,
+ c++/94385, c++/94426, c++/94453, c++/94454, c++/94462, c++/94470,
+ c++/94475, c++/94477, c++/94478, c++/94480, c++/94481, c++/94483,
+ c++/94507, c++/94512, c++/94521, c++/94523, c++/94528, c++/94571,
+ c++/94588, c++/94608, c++/94632, c/92326, c/94392, c/94593, d/90136,
+ d/94304, d/94305, d/94315, d/94321, d/94424, d/94425, d/94609,
+ debug/94439, debug/94441, debug/94450, debug/94459, debug/94495,
+ driver/94381, fortran/57129, fortran/85982, fortran/87644,
+ fortran/87923, fortran/91800, fortran/93364, fortran/93498,
+ fortran/93500, fortran/93522, fortran/93686, fortran/93871,
+ fortran/94030, fortran/94090, fortran/94091, fortran/94192,
+ fortran/94246, fortran/94347, fortran/94348, fortran/94386,
+ gcov-profile/93401, gcov-profile/94570, go/94607, ipa/92676,
+ ipa/93621, ipa/93940, ipa/94363, ipa/94434, ipa/94445, ipa/94582,
+ libgcc/94513, libgomp/92843, libstdc++/93960, libstdc++/94498,
+ libstdc++/94520, libstdc++/94562, libstdc++/94565, lto/94612,
+ middle-end/89433, middle-end/93465, middle-end/94412,
+ middle-end/94423, middle-end/94436, middle-end/94465,
+ middle-end/94479, middle-end/94526, middle-end/94539,
+ middle-end/94614, middle-end/94635, objc/94637, other/94629,
+ rtl-optimization/84169, rtl-optimization/87716,
+ rtl-optimization/93946, rtl-optimization/93974,
+ rtl-optimization/94123, rtl-optimization/94291,
+ rtl-optimization/94344, rtl-optimization/94468,
+ rtl-optimization/94516, rtl-optimization/94605,
+ rtl-optimization/94618, target/93053, target/94317, target/94368,
+ target/94396, target/94417, target/94420, target/94435, target/94438,
+ target/94460, target/94467, target/94488, target/94494, target/94500,
+ target/94509, target/94530, target/94542, target/94551, target/94556,
+ target/94561, target/94567, target/94584, target/94603, target/94606,
+ testsuite/93369, testsuite/94079, testsuite/94402, testsuite/94533,
+ tree-optimization/89713, tree-optimization/91322,
+ tree-optimization/93674, tree-optimization/94043,
+ tree-optimization/94398, tree-optimization/94401,
+ tree-optimization/94403, tree-optimization/94443,
+ tree-optimization/94482, tree-optimization/94524,
+ tree-optimization/94573, tree-optimization/94574,
+ tree-optimization/94598, tree-optimization/94621
+
+* Sat Mar 28 2020 Jakub Jelinek 10.0.1-0.11
+- update from trunk
+ - PRs c++/81349, c++/84733, c++/93810, c++/93824, c++/94057, c++/94078,
+ c++/94098, c++/94257, c++/94265, c++/94272, c++/94319, c++/94326,
+ c++/94336, c++/94339, c++/94346, c/93573, debug/94273, debug/94281,
+ debug/94296, debug/94323, fortran/93363, fortran/93957, ipa/94271,
+ lto/94259, middle-end/94004, rtl-optimization/92264, target/94145,
+ target/94220, target/94292, testsuite/94334, tree-optimization/90332,
+ tree-optimization/94131, tree-optimization/94269,
+ tree-optimization/94329, tree-optimization/94352
+- fix x86 vec_extract_{lo,hi}*_mask AVX512* patterns (PR target/93069)
+- fix x86 *one_cmpl*2* AVX512* patterns (PR target/94343)
+- add BuildRequires: libzstd-devel
+
+* Wed Mar 25 2020 Jakub Jelinek 10.0.1-0.10
+- update from trunk
+ - PRs analyzer/94047, analyzer/94099, analyzer/94105, c++/67960, c++/69694,
+ c++/90995, c++/91759, c++/91993, c++/92068, c++/92909, c++/93248,
+ c++/93596, c++/93805, c++/93931, c++/94044, c++/94066, c++/94147,
+ c++/94175, c++/94186, c++/94190, c++/94197, c++/94223, c/94040,
+ c/94172, c/94179, c/94239, d/92216, d/92309, d/92792, d/93038,
+ d/94240, debug/93751, debug/94167, debug/94277, debug/94280,
+ debug/94283, debug/94285, fortran/93365, fortran/93484, fortran/93600,
+ gcov-profile/94029, ipa/92372, ipa/92799, ipa/93347, ipa/94202,
+ ipa/94217, ipa/94232, ipa/94245, ipa/94250, libgomp/81689,
+ libgomp/94251, libstdc++/93245, libstdc++/94033, libstdc++/94199,
+ libstdc++/94203, libstdc++/94242, lto/91027, lto/94157, lto/94249,
+ middle-end/92071, middle-end/93566, middle-end/94072,
+ middle-end/94120, middle-end/94188, middle-end/94189,
+ middle-end/94206, middle-end/94216, middle-end/94233,
+ middle-end/94303, rtl-optimization/90275, rtl-optimization/92303,
+ rtl-optimization/94042, rtl-optimization/94052,
+ rtl-optimization/94119, rtl-optimization/94148, target/92379,
+ target/93694, target/94052, target/94144, target/94154, target/94176,
+ target/94185, target/94201, target/94238, target/94286,
+ testsuite/93935, tree-optimization/93435, tree-optimization/94103,
+ tree-optimization/94125, tree-optimization/94163,
+ tree-optimization/94166, tree-optimization/94187,
+ tree-optimization/94211, tree-optimization/94224,
+ tree-optimization/94261, tree-optimization/94266,
+ tree-optimization/94300
+- fix ICE in final_scan_insn_1 on i686 with vzeroupper (#1816760,
+ PR target/94308)
+- fix ppc64* hang with dfp (PR target/94254)
+
+* Wed Mar 11 2020 Jakub Jelinek 10.0.1-0.9
+- update from trunk
+ - PRs ada/91100, analyzer/93032, analyzer/93388, analyzer/93692,
+ analyzer/93774, analyzer/93775, analyzer/93777, analyzer/93778,
+ analyzer/93779, analyzer/93899, analyzer/93947, analyzer/93950,
+ analyzer/93959, analyzer/93993, analyzer/94028, bootstrap/93962,
+ c++/52320, c++/66139, c++/90432, c++/90467, c++/90505, c++/90938,
+ c++/91465, c++/92031, c++/92721, c++/93169, c++/93676, c++/93712,
+ c++/93729, c++/93789, c++/93801, c++/93803, c++/93804, c++/93817,
+ c++/93862, c++/93869, c++/93870, c++/93882, c++/93901, c++/93905,
+ c++/93907, c++/93922, c++/93933, c++/93956, c++/93958, c++/93998,
+ c++/94027, c++/94041, c++/94068, c++/94074, c++/94117, c++/94124,
+ c/86134, c/93577, c/93812, c/93858, c/93886, c/93887, c/93949,
+ debug/93888, driver/47785, driver/93796, fortran/92785, fortran/92959,
+ fortran/92976, fortran/93486, fortran/93552, fortran/93580,
+ fortran/93581, fortran/93599, fortran/93601, fortran/93603,
+ fortran/93604, fortran/93714, fortran/93792, fortran/93825,
+ fortran/93835, fortran/93889, fortran/93890, gcov-profile/93753,
+ inline-asm/94095, ipa/92518, ipa/92548, ipa/92924, ipa/93583,
+ ipa/93707, ipa/93760, ipa/93797, libstdc++/92546, libstdc++/93244,
+ libstdc++/93818, libstdc++/93872, libstdc++/93884, libstdc++/93936,
+ libstdc++/93972, libstdc++/93978, libstdc++/94013, libstdc++/94017,
+ libstdc++/94051, libstdc++/94063, libstdc++/94069, lto/78353,
+ middle-end/81401, middle-end/92152, middle-end/93399,
+ middle-end/93829, middle-end/93843, middle-end/93874,
+ middle-end/93926, middle-end/93961, middle-end/94111, other/55930,
+ other/93756, other/93912, other/93965, rtl-optimization/93564,
+ rtl-optimization/93996, rtl-optimization/94002,
+ rtl-optimization/94045, rtl-optimization/PR92989, sanitizer/93731,
+ target/26877, target/87560, target/87612, target/89229, target/89346,
+ target/90311, target/90763, target/91276, target/91598, target/93047,
+ target/93658, target/93709, target/93743, target/93800, target/93828,
+ target/93860, target/93913, target/93932, target/93937, target/93995,
+ target/93997, target/94046, target/94065, target/94088, target/94121,
+ target/94134, testsuite/91797, testsuite/91799, testsuite/94019,
+ testsuite/94023, translation/93755, translation/93759,
+ translation/93830, translation/93831, translation/93838,
+ translation/93841, translation/93864, tree-optimization/90883,
+ tree-optimization/91890, tree-optimization/92128,
+ tree-optimization/92982, tree-optimization/93508,
+ tree-optimization/93586, tree-optimization/93667,
+ tree-optimization/93767, tree-optimization/93776,
+ tree-optimization/93780, tree-optimization/93820,
+ tree-optimization/93845, tree-optimization/93868,
+ tree-optimization/93927, tree-optimization/93945,
+ tree-optimization/93946, tree-optimization/93953,
+ tree-optimization/93964, tree-optimization/93986,
+ tree-optimization/94001, tree-optimization/94114
+ - fix ICE on rotate with -Wconversion (#1810941, PR c++/94067)
+ - fix -fcf-protection -flto -g interaction (#1808484, PR lto/93966)
+ - fix git miscompilation on s390x with -O2 -march=zEC12 -mtune=z13
+ (#1799408, PR rtl-optimization/93908)
+ - fix ICE in in propagate_vals_across_arith_jfunc (#1806466, PR ipa/93763)
+ - ARM ABI alignment fix for classes derived from user aligned empty
+ bases (PR c++/94050)
+- strlen pass fixes (PR tree-optimization/94015)
+- fix {memset,memcpy,memmove,strncpy} head trimming if the result is used
+ (PR tree-optimization/94130)
+- drop python2-devel Requires
+
+* Sun Feb 16 2020 Jakub Jelinek 10.0.1-0.8
+- update from trunk
+ - PRs analyzer/93212, analyzer/93288, analyzer/93350, analyzer/93356,
+ analyzer/93373, analyzer/93374, analyzer/93379, analyzer/93405,
+ analyzer/93438, analyzer/93457, analyzer/93543, analyzer/93544,
+ analyzer/93546, analyzer/93547, analyzer/93647, analyzer/93649,
+ analyzer/93657, analyzer/93659, analyzer/93669, c++/14179, c++/61414,
+ c++/66477, c++/69448, c++/80471, c++/86216, c++/86917, c++/88256,
+ c++/88819, c++/89404, c++/90691, c++/90951, c++/91953, c++/92003,
+ c++/92517, c++/92556, c++/92583, c++/92593, c++/92654, c++/92717,
+ c++/92947, c++/93140, c++/93458, c++/93530, c++/93549, c++/93551,
+ c++/93557, c++/93559, c++/93597, c++/93618, c++/93633, c++/93643,
+ c++/93650, c++/93675, c++/93684, c++/93710, c++/93713, c/87488,
+ c/88660, c/93576, c/93640, fortran/83113, fortran/92305,
+ fortran/93427, fortran/93462, fortran/93541, gcov-profile/91971,
+ gcov-profile/93466, ipa/93203, libgcc/85334, libgomp/93481,
+ libgomp/93515, libstdc++/79193, libstdc++/88999, libstdc++/92906,
+ libstdc++/93562, lto/93489, middle-end/90648, middle-end/93519,
+ middle-end/93555, middle-end/93646, middle-end/93663, other/93168,
+ other/93641, preprocessor/92319, preprocessor/93545,
+ rtl-optimization/91333, rtl-optimization/91838,
+ rtl-optimization/93561, rtl-optimization/93565, target/58218,
+ target/65782, target/85667, target/87763, target/91052, target/91816,
+ target/91913, target/91927, target/92190, target/93122, target/93136,
+ target/93300, target/93372, target/93532, target/93533, target/93548,
+ target/93568, target/93569, target/93594, target/93611, target/93615,
+ target/93637, target/93656, target/93670, target/93673, target/93696,
+ target/93704, target/93724, testsuite/92177, testsuite/93697,
+ testsuite/93717, tree-optimization/91123, tree-optimization/92819,
+ tree-optimization/93516, tree-optimization/93538,
+ tree-optimization/93582, tree-optimization/93661,
+ tree-optimization/93662, tree-optimization/93683,
+ tree-optimization/93744
+
+* Thu Jan 30 2020 Jakub Jelinek 10.0.1-0.7
+- update from trunk
+ - PRs analyzer/93276, analyzer/93291, analyzer/93349, analyzer/93450,
+ analyzer/93451, bootstrap/93409, c++/60503, c++/82521, c++/88092,
+ c++/89357, c++/89640, c++/90333, c++/90338, c++/90546, c++/90731,
+ c++/90966, c++/90992, c++/91118, c++/91754, c++/91826, c++/92440,
+ c++/92601, c++/92948, c++/93442, c++/93443, c++/93477, driver/91220,
+ fortran/85781, fortran/87103, fortran/92123, fortran/93025,
+ fortran/93461, fortran/93463, fortran/93464, fortran/93473,
+ gcov-profile/93403, libstdc++/92895, libstdc++/93325, libstdc++/93426,
+ libstdc++/93470, libstdc++/93478, libstdc++/93479, middle-end/92323,
+ middle-end/93437, middle-end/93505, rtl-optimization/87763,
+ rtl-optimization/92989, rtl-optimization/93170,
+ rtl-optimization/93272, sanitizer/93436, target/91399, target/91461,
+ target/91824, target/92822, target/93221, target/93274, target/93418,
+ target/93494, testsuite/71727, testsuite/91171, testsuite/93393,
+ testsuite/93460, tree-optimization/89689, tree-optimization/92706,
+ tree-optimization/92822, tree-optimization/93397,
+ tree-optimization/93428, tree-optimization/93434,
+ tree-optimization/93439, tree-optimization/93454
+ - LTO fix for *.localalias aliases (#1795575, PR lto/93384)
+ - __has_include{,_next} fix (#1795633, PR preprocessor/93452)
+
+* Sun Jan 26 2020 Jakub Jelinek 10.0.1-0.6
+- update from trunk
+ - PRs analyzer/93367, c++/90997, c++/92852, c++/93279, c++/93299, c++/93377,
+ c++/93400, c++/93414, inline-asm/93027, ipa/93166, target/13721,
+ target/92269, target/93395, target/93412, target/93430,
+ translation/90162, tree-optimization/92788
+- temporarily disable broken strcmp optimization (PR tree-optimization/92765)
+- riscv64 tweaks from David Abdurachmanov (#1794343)
+
+* Thu Jan 23 2020 Jakub Jelinek 10.0.1-0.5
+- update from trunk
+ - PRs analyzer/93307, analyzer/93316, analyzer/93352, analyzer/93375,
+ analyzer/93378, analyzer/93382, c++/40752, c++/60855, c++/90732,
+ c++/91476, c++/92804, c++/92907, c++/93324, c++/93331, c++/93345,
+ c/84919, c/93348, fortran/93329, ipa/93315, libstdc++/91947,
+ rtl-optimization/93124, rtl-optimization/93402, target/91298,
+ target/92424, target/9311, target/93119, target/93333, target/93335,
+ target/93341, target/93346, target/93376, testsuite/93391,
+ tree-optimization/92924, tree-optimization/93381
+ - fix ICE in nothrow_spec_p (#1794094, c++/93345)
+
+* Tue Jan 21 2020 Jakub Jelinek 10.0.1-0.4
+- update from trunk
+ - PRs c++/33799, c++/92536, debug/92763, fortran/44960, fortran/93309,
+ lto/93318, middle-end/93194, middle-end/93242, preprocessor/80005,
+ target/93073, target/93304, target/93319, testsuite/92829,
+ tree-opt/93321, tree-optimization/92328, tree-optimization/93094,
+ tree-optimization/93199
+- add arm_bf16.h and arm_sve.h to arm and arm/aarch64 (#1793471)
+
+* Sat Jan 18 2020 Jakub Jelinek 10.0.1-0.3
- new package
diff --git a/gcc10-Wno-format-security.patch b/gcc10-Wno-format-security.patch
new file mode 100644
index 0000000..974ea44
--- /dev/null
+++ b/gcc10-Wno-format-security.patch
@@ -0,0 +1,27 @@
+2017-02-25 Jakub Jelinek
+
+ * configure.ac: When adding -Wno-format, also add -Wno-format-security.
+ * configure: Regenerated.
+
+--- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
++++ gcc/configure.ac 2017-02-25 12:42:32.859175403 +0100
+@@ -480,7 +480,7 @@ AC_ARG_ENABLE(build-format-warnings,
+ AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
+ [],[enable_build_format_warnings=yes])
+ AS_IF([test $enable_build_format_warnings = no],
+- [wf_opt=-Wno-format],[wf_opt=])
++ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
+ ACX_PROG_CXX_WARNING_OPTS(
+ m4_quote(m4_do([-W -Wall -Wno-narrowing -Wwrite-strings ],
+ [-Wcast-qual -Wno-error=format-diag $wf_opt])),
+--- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
++++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
+@@ -6647,7 +6647,7 @@ else
+ fi
+
+ if test $enable_build_format_warnings = no; then :
+- wf_opt=-Wno-format
++ wf_opt="-Wno-format -Wno-format-security"
+ else
+ wf_opt=
+ fi
diff --git a/gcc16-d-shared-libphobos.patch b/gcc10-d-shared-libphobos.patch
similarity index 100%
rename from gcc16-d-shared-libphobos.patch
rename to gcc10-d-shared-libphobos.patch
diff --git a/gcc10-foffload-default.patch b/gcc10-foffload-default.patch
new file mode 100644
index 0000000..4a87e9f
--- /dev/null
+++ b/gcc10-foffload-default.patch
@@ -0,0 +1,122 @@
+2019-01-17 Jakub Jelinek
+
+ * gcc.c (offload_targets_default): New variable.
+ (process_command): Set it if -foffload is defaulted.
+ (driver::maybe_putenv_OFFLOAD_TARGETS): Add OFFLOAD_TARGET_DEFAULT=1
+ into environment if -foffload has been defaulted.
+ * lto-wrapper.c (OFFLOAD_TARGET_DEFAULT_ENV): Define.
+ (compile_offload_image): If OFFLOAD_TARGET_DEFAULT
+ is in the environment, don't fail if corresponding mkoffload
+ can't be found.
+ (compile_images_for_offload_targets): Likewise. Free and clear
+ offload_names if no valid offload is found.
+libgomp/
+ * target.c (gomp_load_plugin_for_device): If a plugin can't be
+ dlopened, assume it has no devices silently.
+
+--- gcc/gcc.c.jj 2017-01-17 10:28:40.000000000 +0100
++++ gcc/gcc.c 2017-01-20 16:26:29.649962902 +0100
+@@ -290,6 +290,10 @@ static const char *spec_host_machine = D
+
+ static char *offload_targets = NULL;
+
++/* Set to true if -foffload has not been used and offload_targets
++ is set to the configured in default. */
++static bool offload_targets_default;
++
+ /* Nonzero if cross-compiling.
+ When -b is used, the value comes from the `specs' file. */
+
+@@ -4457,7 +4461,10 @@ process_command (unsigned int decoded_op
+ /* If the user didn't specify any, default to all configured offload
+ targets. */
+ if (ENABLE_OFFLOADING && offload_targets == NULL)
+- handle_foffload_option (OFFLOAD_TARGETS);
++ {
++ handle_foffload_option (OFFLOAD_TARGETS);
++ offload_targets_default = true;
++ }
+
+ if (output_file
+ && strcmp (output_file, "-") != 0
+@@ -7693,6 +7700,8 @@ driver::maybe_putenv_OFFLOAD_TARGETS ()
+ obstack_grow (&collect_obstack, offload_targets,
+ strlen (offload_targets) + 1);
+ xputenv (XOBFINISH (&collect_obstack, char *));
++ if (offload_targets_default)
++ xputenv ("OFFLOAD_TARGET_DEFAULT=1");
+ }
+
+ free (offload_targets);
+--- gcc/lto-wrapper.c.jj 2017-01-01 12:45:34.000000000 +0100
++++ gcc/lto-wrapper.c 2017-01-20 16:34:18.294016997 +0100
+@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3.
+ /* Environment variable, used for passing the names of offload targets from GCC
+ driver to lto-wrapper. */
+ #define OFFLOAD_TARGET_NAMES_ENV "OFFLOAD_TARGET_NAMES"
++#define OFFLOAD_TARGET_DEFAULT_ENV "OFFLOAD_TARGET_DEFAULT"
+
+ enum lto_mode_d {
+ LTO_MODE_NONE, /* Not doing LTO. */
+@@ -822,6 +823,12 @@ compile_offload_image (const char *targe
+ break;
+ }
+
++ if (!compiler && getenv (OFFLOAD_TARGET_DEFAULT_ENV))
++ {
++ free_array_of_ptrs ((void **) paths, n_paths);
++ return NULL;
++ }
++
+ if (!compiler)
+ fatal_error (input_location,
+ "could not find %s in %s (consider using %<-B%>)",
+@@ -885,6 +892,7 @@ compile_images_for_offload_targets (unsi
+ unsigned num_targets = parse_env_var (target_names, &names, NULL);
+
+ int next_name_entry = 0;
++ bool hsa_seen = false;
+ const char *compiler_path = getenv ("COMPILER_PATH");
+ if (!compiler_path)
+ goto out;
+@@ -897,18 +905,26 @@ compile_images_for_offload_targets (unsi
+ /* HSA does not use LTO-like streaming and a different compiler, skip
+ it. */
+ if (strcmp (names[i], "hsa") == 0)
+- continue;
++ {
++ hsa_seen = true;
++ continue;
++ }
+
+ offload_names[next_name_entry]
+ = compile_offload_image (names[i], compiler_path, in_argc, in_argv,
+ compiler_opts, compiler_opt_count,
+ linker_opts, linker_opt_count);
+ if (!offload_names[next_name_entry])
+- fatal_error (input_location,
+- "problem with building target image for %s", names[i]);
++ continue;
+ next_name_entry++;
+ }
+
++ if (next_name_entry == 0 && !hsa_seen)
++ {
++ free (offload_names);
++ offload_names = NULL;
++ }
++
+ out:
+ free_array_of_ptrs ((void **) names, num_targets);
+ }
+--- libgomp/target.c.jj 2017-01-01 12:45:52.000000000 +0100
++++ libgomp/target.c 2017-01-20 20:12:13.756710875 +0100
+@@ -2356,7 +2356,7 @@ gomp_load_plugin_for_device (struct gomp
+
+ void *plugin_handle = dlopen (plugin_name, RTLD_LAZY);
+ if (!plugin_handle)
+- goto dl_fail;
++ return 0;
+
+ /* Check if all required functions are available in the plugin and store
+ their handlers. None of the symbols can legitimately be NULL,
diff --git a/gcc16-hack.patch b/gcc10-hack.patch
similarity index 54%
rename from gcc16-hack.patch
rename to gcc10-hack.patch
index 61331bf..ba80c24 100644
--- a/gcc16-hack.patch
+++ b/gcc10-hack.patch
@@ -64,119 +64,63 @@
+ infodir="$(infodir)" \
GOCFLAGS="$(GOCFLAGS) $${flags}" \
GDCFLAGS="$(GDCFLAGS) $${flags}" \
- A68FLAGS="$(A68FLAGS) $${flags}" \
---- libcpp/macro.cc.jj 2019-01-09 13:01:21.420552123 +0100
-+++ libcpp/macro.cc 2024-11-30 13:16:41.163056391 +0100
-@@ -3680,8 +3680,6 @@ static cpp_macro *
+ CXXFLAGS="$(CXXFLAGS) $${flags}" \
+--- libcpp/macro.c.jj 2019-01-09 13:01:21.420552123 +0100
++++ libcpp/macro.c 2019-01-11 18:18:17.736876285 +0100
+@@ -3256,8 +3256,6 @@ static cpp_macro *
create_iso_definition (cpp_reader *pfile)
{
bool following_paste_op = false;
- const char *paste_op_error_msg =
-- N_("%<##%> cannot appear at either end of a macro expansion");
+- N_("'##' cannot appear at either end of a macro expansion");
unsigned int num_extra_tokens = 0;
unsigned nparms = 0;
cpp_hashnode **params = NULL;
-@@ -3809,7 +3807,9 @@ create_iso_definition (cpp_reader *pfile
+@@ -3382,7 +3380,9 @@ create_iso_definition (cpp_reader *pfile
function-like macros, but not at the end. */
if (following_paste_op)
{
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
+ cpp_error (pfile, CPP_DL_ERROR,
-+ "%<##%> cannot appear at either end of a macro "
++ "'##' cannot appear at either end of a macro "
+ "expansion");
goto out;
}
if (!vaopt_tracker.completed ())
-@@ -3824,7 +3824,9 @@ create_iso_definition (cpp_reader *pfile
+@@ -3397,7 +3397,9 @@ create_iso_definition (cpp_reader *pfile
function-like macros, but not at the beginning. */
if (macro->count == 1)
{
- cpp_error (pfile, CPP_DL_ERROR, paste_op_error_msg);
+ cpp_error (pfile, CPP_DL_ERROR,
-+ "%<##%> cannot appear at either end of a macro "
++ "'##' cannot appear at either end of a macro "
+ "expansion");
goto out;
}
---- libcpp/expr.cc.jj 2019-01-09 13:01:22.415535734 +0100
-+++ libcpp/expr.cc 2024-11-30 13:14:52.468583689 +0100
-@@ -874,50 +874,54 @@ cpp_classify_number (cpp_reader *pfile,
+--- libcpp/expr.c.jj 2019-01-09 13:01:22.415535734 +0100
++++ libcpp/expr.c 2019-01-11 18:16:23.444726882 +0100
+@@ -788,16 +788,17 @@ cpp_classify_number (cpp_reader *pfile,
if ((result & CPP_N_WIDTH) == CPP_N_LARGE
&& CPP_OPTION (pfile, cpp_warn_long_long))
{
-- const char *message = CPP_OPTION (pfile, cplusplus)
+- const char *message = CPP_OPTION (pfile, cplusplus)
- ? N_("use of C++11 long long integer constant")
- : N_("use of C99 long long integer constant");
-
if (CPP_OPTION (pfile, c99))
-- cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
+ cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
- 0, message);
-+ cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location, 0,
-+ CPP_OPTION (pfile, cplusplus)
-+ ? N_("use of C++11 long long integer "
-+ "constant")
-+ : N_("use of C99 long long integer "
-+ "constant"));
++ 0, CPP_OPTION (pfile, cplusplus)
++ ? N_("use of C++11 long long integer constant")
++ : N_("use of C99 long long integer constant"));
else
cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
- virtual_location, 0, message);
+ virtual_location, 0,
+ CPP_OPTION (pfile, cplusplus)
-+ ? N_("use of C++11 long long integer "
-+ "constant")
-+ : N_("use of C99 long long integer "
-+ "constant"));
++ ? N_("use of C++11 long long integer constant")
++ : N_("use of C99 long long integer constant"));
}
- if ((result & CPP_N_SIZE_T) == CPP_N_SIZE_T
- && !CPP_OPTION (pfile, size_t_literals))
-- {
-- const char *message
-- = (result & CPP_N_UNSIGNED) == CPP_N_UNSIGNED
-- ? N_("use of C++23 % integer constant")
-- : N_("use of C++23 %%> integer constant");
-- cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
-- virtual_location, 0, message);
-- }
-+ cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
-+ virtual_location, 0,
-+ (result & CPP_N_UNSIGNED) == CPP_N_UNSIGNED
-+ ? N_("use of C++23 % integer "
-+ "constant")
-+ : N_("use of C++23 %%> "
-+ "integer constant"));
-
- if ((result & CPP_N_BITINT) != 0
- && CPP_OPTION (pfile, cpp_warn_c11_c23_compat) != 0)
- {
- if (CPP_OPTION (pfile, cpp_warn_c11_c23_compat) > 0)
- {
-- const char *message = N_("ISO C does not support literal "
-- "% suffixes before C23");
- if (CPP_PEDANTIC (pfile) && !CPP_OPTION (pfile, true_false))
- cpp_pedwarning_with_line (pfile, CPP_W_C11_C23_COMPAT,
-- virtual_location, 0, message);
-+ virtual_location, 0,
-+ "ISO C does not support literal "
-+ "% suffixes before C23");
- else
- cpp_warning_with_line (pfile, CPP_W_C11_C23_COMPAT,
-- virtual_location, 0, message);
-- }
-- else if (!CPP_OPTION (pfile, true_false))
-- {
-- const char *message = N_("ISO C does not support literal "
-+ virtual_location, 0,
-+ "ISO C does not support literal "
- "% suffixes before C23");
-- cpp_pedwarning_with_line (pfile, CPP_W_PEDANTIC,
-- virtual_location, 0, message);
- }
-+ else if (!CPP_OPTION (pfile, true_false))
-+ cpp_pedwarning_with_line (pfile, CPP_W_PEDANTIC,
-+ virtual_location, 0,
-+ "ISO C does not support literal "
-+ "% suffixes before C23");
- }
-
result |= CPP_N_INTEGER;
diff --git a/gcc10-i386-libgomp.patch b/gcc10-i386-libgomp.patch
new file mode 100644
index 0000000..520561e
--- /dev/null
+++ b/gcc10-i386-libgomp.patch
@@ -0,0 +1,11 @@
+--- libgomp/configure.tgt.jj 2008-01-10 20:53:48.000000000 +0100
++++ libgomp/configure.tgt 2008-03-27 12:44:51.000000000 +0100
+@@ -67,7 +67,7 @@ if test $enable_linux_futex = yes; then
+ ;;
+ *)
+ if test -z "$with_arch"; then
+- XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}"
++ XCFLAGS="${XCFLAGS} -march=i486 -mtune=generic"
+ fi
+ esac
+ ;;
diff --git a/gcc16-isl-dl.patch b/gcc10-isl-dl.patch
similarity index 96%
rename from gcc16-isl-dl.patch
rename to gcc10-isl-dl.patch
index dc0c49b..c681895 100644
--- a/gcc16-isl-dl.patch
+++ b/gcc10-isl-dl.patch
@@ -26,11 +26,11 @@
# Generate header and source files from the machine description,
# and compile them.
--- gcc/graphite.h.jj 2016-01-27 12:44:06.000000000 +0100
-+++ gcc/graphite.h 2022-11-03 19:14:50.369690720 +0100
-@@ -24,6 +24,591 @@ along with GCC; see the file COPYING3.
-
- #include "sese.h"
-
++++ gcc/graphite.h 2016-01-27 13:26:38.309876856 +0100
+@@ -39,6 +39,590 @@ along with GCC; see the file COPYING3.
+ #include
+ #include
+ #include
+#include
+#include
+
@@ -41,15 +41,15 @@
+ DYNSYM (isl_aff_set_coefficient_si); \
+ DYNSYM (isl_aff_set_constant_si); \
+ DYNSYM (isl_aff_zero_on_domain); \
-+ /* DYNSYM (isl_band_free); */ \
-+ /* DYNSYM (isl_band_get_children); */ \
-+ /* DYNSYM (isl_band_get_partial_schedule); */ \
-+ /* DYNSYM (isl_band_has_children); */ \
-+ /* DYNSYM (isl_band_list_free); */ \
-+ /* DYNSYM (isl_band_list_get_band); */ \
-+ /* DYNSYM (isl_band_list_get_ctx); */ \
-+ /* DYNSYM (isl_band_list_n_band); */ \
-+ /* DYNSYM (isl_band_n_member); */ \
++ DYNSYM (isl_band_free); \
++ DYNSYM (isl_band_get_children); \
++ DYNSYM (isl_band_get_partial_schedule); \
++ DYNSYM (isl_band_has_children); \
++ DYNSYM (isl_band_list_free); \
++ DYNSYM (isl_band_list_get_band); \
++ DYNSYM (isl_band_list_get_ctx); \
++ DYNSYM (isl_band_list_n_band); \
++ DYNSYM (isl_band_n_member); \
+ DYNSYM (isl_basic_map_add_constraint); \
+ DYNSYM (isl_basic_map_project_out); \
+ DYNSYM (isl_basic_map_universe); \
@@ -91,7 +91,7 @@
+ DYNSYM (isl_map_is_empty); \
+ DYNSYM (isl_map_lex_ge); \
+ DYNSYM (isl_map_lex_le); \
-+ /* DYNSYM (isl_map_n_out); */ \
++ DYNSYM (isl_map_n_out); \
+ DYNSYM (isl_map_range); \
+ DYNSYM (isl_map_set_tuple_id); \
+ DYNSYM (isl_map_universe); \
@@ -124,7 +124,7 @@
+ DYNSYM (isl_pw_aff_sub); \
+ DYNSYM (isl_pw_aff_zero_set); \
+ DYNSYM (isl_schedule_free); \
-+ /* DYNSYM (isl_schedule_get_band_forest); */ \
++ DYNSYM (isl_schedule_get_band_forest); \
+ DYNSYM (isl_set_add_constraint); \
+ DYNSYM (isl_set_add_dims); \
+ DYNSYM (isl_set_apply); \
@@ -615,21 +615,20 @@
+#define isl_version (*isl_pointers__.p_isl_version)
+#define isl_options_get_on_error (*isl_pointers__.p_isl_options_get_on_error)
+#define isl_ctx_reset_error (*isl_pointers__.p_isl_ctx_reset_error)
-+
+
typedef struct poly_dr *poly_dr_p;
- typedef struct poly_bb *poly_bb_p;
-@@ -448,5 +1033,6 @@ extern tree cached_scalar_evolution_in_r
+@@ -461,5 +1045,6 @@ extern void build_scops (vec *);
extern void dot_all_sese (FILE *, vec &);
extern void dot_sese (sese_l &);
extern void dot_cfg ();
+extern const char *get_isl_version (bool);
#endif
---- gcc/graphite.cc.jj 2015-11-04 14:15:32.000000000 +0100
-+++ gcc/graphite.cc 2015-11-04 14:56:02.645536409 +0100
+--- gcc/graphite.c.jj 2015-11-04 14:15:32.000000000 +0100
++++ gcc/graphite.c 2015-11-04 14:56:02.645536409 +0100
@@ -60,6 +60,35 @@ along with GCC; see the file COPYING3.
- #include "tree-ssa-propagate.h"
+ #include "tree-into-ssa.h"
#include "graphite.h"
+__typeof (isl_pointers__) isl_pointers__;
@@ -641,7 +640,7 @@
+
+ if (isl_pointers__.inited)
+ return isl_pointers__.h != NULL;
-+ h = dlopen ("libisl.so.23", RTLD_LAZY);
++ h = dlopen ("libisl.so.15", RTLD_LAZY);
+ isl_pointers__.h = h;
+ if (h == NULL)
+ return false;
@@ -664,7 +663,7 @@
/* Print global statistics to FILE. */
static void
-@@ -424,6 +453,15 @@ graphite_transform_loops (void)
+@@ -365,6 +394,15 @@ graphite_transform_loops (void)
if (parallelized_function_p (cfun->decl))
return;
@@ -680,7 +679,7 @@
calculate_dominance_info (CDI_DOMINATORS);
/* We rely on post-dominators during merging of SESE regions so those
-@@ -519,6 +557,14 @@ graphite_transform_loops (void)
+@@ -455,6 +493,14 @@ graphite_transform_loops (void)
}
}
@@ -695,17 +694,17 @@
#else /* If isl is not available: #ifndef HAVE_isl. */
static void
---- gcc/toplev.cc.jj 2017-02-19 13:02:31.000000000 +0100
-+++ gcc/toplev.cc 2024-11-30 13:22:34.175096117 +0100
-@@ -100,6 +100,7 @@ along with GCC; see the file COPYING3.
+--- gcc/toplev.c.jj 2017-02-19 13:02:31.000000000 +0100
++++ gcc/toplev.c 2017-02-19 16:50:25.536301350 +0100
+@@ -94,6 +94,7 @@ along with GCC; see the file COPYING3.
#ifdef HAVE_isl
#include
+extern const char *get_isl_version (bool);
#endif
- static void general_init (const char *, bool, unique_argv original_argv);
-@@ -652,7 +653,7 @@ print_version (FILE *file, const char *i
+ static void general_init (const char *, bool);
+@@ -683,7 +684,7 @@ print_version (FILE *file, const char *i
#ifndef HAVE_isl
"none"
#else
diff --git a/gcc16-libgomp-omp_h-multilib.patch b/gcc10-libgomp-omp_h-multilib.patch
similarity index 100%
rename from gcc16-libgomp-omp_h-multilib.patch
rename to gcc10-libgomp-omp_h-multilib.patch
diff --git a/gcc16-libstdc++-docs.patch b/gcc10-libstdc++-docs.patch
similarity index 74%
rename from gcc16-libstdc++-docs.patch
rename to gcc10-libstdc++-docs.patch
index 7d2d357..d51b6d3 100644
--- a/gcc16-libstdc++-docs.patch
+++ b/gcc10-libstdc++-docs.patch
@@ -4,21 +4,21 @@
FSF
-+ Release 16.0.1
++ Release 10.2.1
+
Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation
License, Version 1.2 or any later version published by the
--- libstdc++-v3/doc/html/api.html.jj 2011-01-03 12:53:21.000000000 +0100
-+++ libstdc++-v3/doc/html/api.html 2024-11-30 13:30:16.607594623 +0100
++++ libstdc++-v3/doc/html/api.html 2011-01-04 18:12:01.672757784 +0100
@@ -20,7 +20,9 @@
member functions for the library classes, finding out what is in a
particular include file, looking at inheritance diagrams, etc.
- The API documentation, rendered into HTML, can be viewed online
+ The API documentation, rendered into HTML, can be viewed locally
-+ for the 16.0.1 release,
++ for the 10.2.1 release,
+ online
- for each GCC release
+ for each GCC release
and
-
+
diff --git a/gcc16-libtool-no-rpath.patch b/gcc10-libtool-no-rpath.patch
similarity index 87%
rename from gcc16-libtool-no-rpath.patch
rename to gcc10-libtool-no-rpath.patch
index 8429a4c..466c661 100644
--- a/gcc16-libtool-no-rpath.patch
+++ b/gcc10-libtool-no-rpath.patch
@@ -5,7 +5,7 @@ libtool sucks.
rpath="$finalize_rpath"
test "$mode" != relink && rpath="$compile_rpath$rpath"
for libdir in $rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@@ -13,7 +13,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $compile_rpath $finalize_rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
@@ -21,7 +21,7 @@ libtool sucks.
rpath=
hardcode_libdirs=
for libdir in $finalize_rpath; do
-+ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64|/usr/lib/../lib64/lp64d) continue;; esac
++ case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
if test -n "$hardcode_libdir_flag_spec"; then
if test -n "$hardcode_libdir_separator"; then
if test -z "$hardcode_libdirs"; then
diff --git a/gcc16-no-add-needed.patch b/gcc10-no-add-needed.patch
similarity index 96%
rename from gcc16-no-add-needed.patch
rename to gcc10-no-add-needed.patch
index 74f5c1f..5817299 100644
--- a/gcc16-no-add-needed.patch
+++ b/gcc10-no-add-needed.patch
@@ -34,4 +34,4 @@
+#define LINK_EH_SPEC "--no-add-needed %{!static|static-pie:--eh-frame-hdr} "
#endif
-
+ #define GNU_USER_TARGET_LINK_GCC_C_SEQUENCE_SPEC \
diff --git a/gcc10-pr96383.patch b/gcc10-pr96383.patch
new file mode 100644
index 0000000..950a2f4
--- /dev/null
+++ b/gcc10-pr96383.patch
@@ -0,0 +1,236 @@
+2020-07-30 Richard Biener
+
+ PR debug/96383
+ * langhooks-def.h (lhd_finalize_early_debug): Declare.
+ (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
+ (LANG_HOOKS_INITIALIZER): Amend.
+ * langhooks.c: Include cgraph.h and debug.h.
+ (lhd_finalize_early_debug): Default implementation from
+ former code in finalize_compilation_unit.
+ * langhooks.h (lang_hooks::finalize_early_debug): Add.
+ * cgraphunit.c (symbol_table::finalize_compilation_unit):
+ Call the finalize_early_debug langhook.
+
+gcc/c-family/
+ * c-common.h (c_common_finalize_early_debug): Declare.
+ * c-common.c: Include debug.h.
+ (c_common_finalize_early_debug): finalize_early_debug langhook
+ implementation generating debug for extern declarations.
+
+gcc/c/
+ * c-objc-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG):
+ Define to c_common_finalize_early_debug.
+
+gcc/cp/
+ * cp-objcp-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG):
+ Define to c_common_finalize_early_debug.
+
+gcc/testsuite/
+ * gcc.dg/debug/dwarf2/pr96383-1.c: New testcase.
+ * gcc.dg/debug/dwarf2/pr96383-2.c: Likewise.
+
+libstdc++-v3/
+ * testsuite/20_util/assume_aligned/3.cc: Use -g0.
+
+--- gcc/c-family/c-common.c
++++ gcc/c-family/c-common.c
+@@ -50,6 +50,7 @@ along with GCC; see the file COPYING3. If not see
+ #include "spellcheck.h"
+ #include "c-spellcheck.h"
+ #include "selftest.h"
++#include "debug.h"
+
+ cpp_reader *parse_in; /* Declared in c-pragma.h. */
+
+@@ -9086,4 +9087,20 @@ braced_lists_to_strings (tree type, tree ctor)
+ return braced_lists_to_strings (type, ctor, false);
+ }
+
++
++/* Emit debug for functions before finalizing early debug. */
++
++void
++c_common_finalize_early_debug (void)
++{
++ /* Emit early debug for reachable functions, and by consequence,
++ locally scoped symbols. Also emit debug for extern declared
++ functions that are still reachable at this point. */
++ struct cgraph_node *cnode;
++ FOR_EACH_FUNCTION (cnode)
++ if (!cnode->alias && !cnode->thunk.thunk_p
++ && (cnode->has_gimple_body_p () || !DECL_IS_BUILTIN (cnode->decl)))
++ (*debug_hooks->early_global_decl) (cnode->decl);
++}
++
+ #include "gt-c-family-c-common.h"
+--- gcc/c-family/c-common.h
++++ gcc/c-family/c-common.h
+@@ -885,6 +885,8 @@ extern bool bool_promoted_to_int_p (tree);
+ extern tree fold_for_warn (tree);
+ extern tree c_common_get_narrower (tree, int *);
+ extern bool get_attribute_operand (tree, unsigned HOST_WIDE_INT *);
++extern void c_common_finalize_early_debug (void);
++
+
+ #define c_sizeof(LOC, T) c_sizeof_or_alignof_type (LOC, T, true, false, 1)
+ #define c_alignof(LOC, T) c_sizeof_or_alignof_type (LOC, T, false, false, 1)
+--- gcc/c/c-objc-common.h
++++ gcc/c/c-objc-common.h
+@@ -65,6 +65,8 @@ along with GCC; see the file COPYING3. If not see
+ c_simulate_builtin_function_decl
+ #undef LANG_HOOKS_EMITS_BEGIN_STMT
+ #define LANG_HOOKS_EMITS_BEGIN_STMT true
++#undef LANG_HOOKS_FINALIZE_EARLY_DEBUG
++#define LANG_HOOKS_FINALIZE_EARLY_DEBUG c_common_finalize_early_debug
+
+ /* Attribute hooks. */
+ #undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
+--- gcc/cgraphunit.c
++++ gcc/cgraphunit.c
+@@ -2998,11 +2998,9 @@ symbol_table::finalize_compilation_unit (void)
+
+ if (!seen_error ())
+ {
+- /* Emit early debug for reachable functions, and by consequence,
+- locally scoped symbols. */
+- struct cgraph_node *cnode;
+- FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (cnode)
+- (*debug_hooks->early_global_decl) (cnode->decl);
++ /* Give the frontends the chance to emit early debug based on
++ what is still reachable in the TU. */
++ (*lang_hooks.finalize_early_debug) ();
+
+ /* Clean up anything that needs cleaning up after initial debug
+ generation. */
+--- gcc/cp/cp-objcp-common.h
++++ gcc/cp/cp-objcp-common.h
+@@ -115,6 +115,8 @@ extern tree cxx_simulate_enum_decl (location_t, const char *,
+ #define LANG_HOOKS_BLOCK_MAY_FALLTHRU cxx_block_may_fallthru
+ #undef LANG_HOOKS_EMITS_BEGIN_STMT
+ #define LANG_HOOKS_EMITS_BEGIN_STMT true
++#undef LANG_HOOKS_FINALIZE_EARLY_DEBUG
++#define LANG_HOOKS_FINALIZE_EARLY_DEBUG c_common_finalize_early_debug
+
+ /* Attribute hooks. */
+ #undef LANG_HOOKS_COMMON_ATTRIBUTE_TABLE
+--- gcc/langhooks-def.h
++++ gcc/langhooks-def.h
+@@ -92,6 +92,7 @@ extern const char *lhd_get_substring_location (const substring_loc &,
+ location_t *out_loc);
+ extern int lhd_decl_dwarf_attribute (const_tree, int);
+ extern int lhd_type_dwarf_attribute (const_tree, int);
++extern void lhd_finalize_early_debug (void);
+
+ #define LANG_HOOKS_NAME "GNU unknown"
+ #define LANG_HOOKS_IDENTIFIER_SIZE sizeof (struct lang_identifier)
+@@ -139,6 +140,7 @@ extern int lhd_type_dwarf_attribute (const_tree, int);
+ #define LANG_HOOKS_EMITS_BEGIN_STMT false
+ #define LANG_HOOKS_RUN_LANG_SELFTESTS lhd_do_nothing
+ #define LANG_HOOKS_GET_SUBSTRING_LOCATION lhd_get_substring_location
++#define LANG_HOOKS_FINALIZE_EARLY_DEBUG lhd_finalize_early_debug
+
+ /* Attribute hooks. */
+ #define LANG_HOOKS_ATTRIBUTE_TABLE NULL
+@@ -364,7 +366,8 @@ extern void lhd_end_section (void);
+ LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS, \
+ LANG_HOOKS_EMITS_BEGIN_STMT, \
+ LANG_HOOKS_RUN_LANG_SELFTESTS, \
+- LANG_HOOKS_GET_SUBSTRING_LOCATION \
++ LANG_HOOKS_GET_SUBSTRING_LOCATION, \
++ LANG_HOOKS_FINALIZE_EARLY_DEBUG \
+ }
+
+ #endif /* GCC_LANG_HOOKS_DEF_H */
+--- gcc/langhooks.c
++++ gcc/langhooks.c
+@@ -36,6 +36,8 @@ along with GCC; see the file COPYING3. If not see
+ #include "output.h"
+ #include "timevar.h"
+ #include "stor-layout.h"
++#include "cgraph.h"
++#include "debug.h"
+
+ /* Do nothing; in many cases the default hook. */
+
+@@ -866,6 +868,18 @@ lhd_unit_size_without_reusable_padding (tree t)
+ return TYPE_SIZE_UNIT (t);
+ }
+
++/* Default implementation for the finalize_early_debug hook. */
++
++void
++lhd_finalize_early_debug (void)
++{
++ /* Emit early debug for reachable functions, and by consequence,
++ locally scoped symbols. */
++ struct cgraph_node *cnode;
++ FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (cnode)
++ (*debug_hooks->early_global_decl) (cnode->decl);
++}
++
+ /* Returns true if the current lang_hooks represents the GNU C frontend. */
+
+ bool
+--- gcc/langhooks.h
++++ gcc/langhooks.h
+@@ -580,6 +580,9 @@ struct lang_hooks
+ const char *(*get_substring_location) (const substring_loc &,
+ location_t *out_loc);
+
++ /* Invoked before the early_finish debug hook is invoked. */
++ void (*finalize_early_debug) (void);
++
+ /* Whenever you add entries here, make sure you adjust langhooks-def.h
+ and langhooks.c accordingly. */
+ };
+--- gcc/testsuite/gcc.dg/debug/dwarf2/pr96383-1.c
++++ gcc/testsuite/gcc.dg/debug/dwarf2/pr96383-1.c
+@@ -0,0 +1,17 @@
++/* { dg-do compile } */
++/* { dg-options "-g -gdwarf -dA" } */
++
++extern void foo (int);
++extern void unusedbar (int);
++
++int main()
++{
++ foo (1);
++}
++
++/* We want subprogram DIEs for both foo and main and a DIE for
++ the formal parameter of foo. We do not want a DIE for
++ unusedbar. */
++/* { dg-final { scan-assembler-times "DW_TAG_subprogram" 4 } } */
++/* { dg-final { scan-assembler-times "DW_TAG_formal_parameter" 2 } } */
++/* { dg-final { scan-assembler-not "unusedbar" } } */
+--- gcc/testsuite/gcc.dg/debug/dwarf2/pr96383-2.c
++++ gcc/testsuite/gcc.dg/debug/dwarf2/pr96383-2.c
+@@ -0,0 +1,17 @@
++/* { dg-do compile } */
++/* { dg-options "-g -O2 -gdwarf -dA" } */
++
++extern void foo (int);
++extern void unusedbar (int);
++
++int main()
++{
++ foo (1);
++}
++
++/* We want subprogram DIEs for both foo and main and a DIE for
++ the formal parameter of foo. We do not want a DIE for
++ unusedbar. */
++/* { dg-final { scan-assembler-times "DW_TAG_subprogram" 4 } } */
++/* { dg-final { scan-assembler-times "DW_TAG_formal_parameter" 2 } } */
++/* { dg-final { scan-assembler-not "unusedbar" } } */
+--- libstdc++-v3/testsuite/20_util/assume_aligned/3.cc
++++ libstdc++-v3/testsuite/20_util/assume_aligned/3.cc
+@@ -15,7 +15,7 @@
+ // with this library; see the file COPYING3. If not see
+ // .
+
+-// { dg-options "-std=gnu++2a -O2" }
++// { dg-options "-std=gnu++2a -O2 -g0" }
+ // { dg-do compile { target c++2a } }
+ // { dg-final { scan-assembler-not "undefined" } }
+
diff --git a/gcc10-pr96939-2.patch b/gcc10-pr96939-2.patch
new file mode 100644
index 0000000..e9e406f
--- /dev/null
+++ b/gcc10-pr96939-2.patch
@@ -0,0 +1,51 @@
+2020-09-09 Jakub Jelinek
+
+ * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
+ argument, test opts_set->x_str_align_functions rather than
+ opts->x_str_align_functions.
+ (arm_override_options_after_change, arm_option_override_internal,
+ arm_set_current_function): Adjust callers.
+
+--- gcc/config/arm/arm.c.jj 2020-09-09 09:19:42.911419411 +0200
++++ gcc/config/arm/arm.c 2020-09-09 09:28:02.392897384 +0200
+@@ -3024,10 +3024,11 @@ static GTY(()) bool thumb_flipper;
+ static GTY(()) tree init_optimize;
+
+ static void
+-arm_override_options_after_change_1 (struct gcc_options *opts)
++arm_override_options_after_change_1 (struct gcc_options *opts,
++ struct gcc_options *opts_set)
+ {
+ /* -falign-functions without argument: supply one. */
+- if (opts->x_flag_align_functions && !opts->x_str_align_functions)
++ if (opts->x_flag_align_functions && !opts_set->x_str_align_functions)
+ opts->x_str_align_functions = TARGET_THUMB_P (opts->x_target_flags)
+ && opts->x_optimize_size ? "2" : "4";
+ }
+@@ -3037,7 +3038,7 @@ arm_override_options_after_change_1 (str
+ static void
+ arm_override_options_after_change (void)
+ {
+- arm_override_options_after_change_1 (&global_options);
++ arm_override_options_after_change_1 (&global_options, &global_options_set);
+ }
+
+ /* Implement TARGET_OPTION_SAVE. */
+@@ -3065,7 +3066,7 @@ static void
+ arm_option_override_internal (struct gcc_options *opts,
+ struct gcc_options *opts_set)
+ {
+- arm_override_options_after_change_1 (opts);
++ arm_override_options_after_change_1 (opts, opts_set);
+
+ if (TARGET_INTERWORK && !bitmap_bit_p (arm_active_target.isa, isa_bit_thumb))
+ {
+@@ -32335,7 +32336,7 @@ arm_set_current_function (tree fndecl)
+
+ save_restore_target_globals (new_tree);
+
+- arm_override_options_after_change_1 (&global_options);
++ arm_override_options_after_change_1 (&global_options, &global_options_set);
+ }
+
+ /* Implement TARGET_OPTION_PRINT. */
diff --git a/gcc10-pr96939-3.patch b/gcc10-pr96939-3.patch
new file mode 100644
index 0000000..f133f8d
--- /dev/null
+++ b/gcc10-pr96939-3.patch
@@ -0,0 +1,111 @@
+2020-09-13 Jakub Jelinek
+
+ * config/arm/arm.opt (arm_arch_specified, arm_cpu_specified,
+ arm_tune_specified): New TargetVariables.
+ * config/arm/arm.c (arm_configure_build_target): Comment out
+ opts_set argument name. Use opts->x_arm_*_specified instead
+ of opts_set->x_arm_*_string.
+ * common/config/arm/arm-common.c (arm_handle_option): New function.
+ (TARGET_HANDLE_OPTION): Redefine.
+
+--- gcc/config/arm/arm.opt.jj 2020-09-12 13:36:27.619716335 +0200
++++ gcc/config/arm/arm.opt 2020-09-12 13:38:48.547661292 +0200
+@@ -30,6 +30,15 @@ const char *x_arm_cpu_string
+ TargetSave
+ const char *x_arm_tune_string
+
++TargetVariable
++unsigned char arm_arch_specified = 0
++
++TargetVariable
++unsigned char arm_cpu_specified = 0
++
++TargetVariable
++unsigned char arm_tune_specified = 0
++
+ Enum
+ Name(tls_type) Type(enum arm_tls_type)
+ TLS dialect to use:
+--- gcc/config/arm/arm.c.jj 2020-09-12 13:36:27.619716335 +0200
++++ gcc/config/arm/arm.c 2020-09-12 13:49:26.166363387 +0200
+@@ -3181,7 +3181,7 @@ static sbitmap isa_quirkbits;
+ void
+ arm_configure_build_target (struct arm_build_target *target,
+ struct cl_target_option *opts,
+- struct gcc_options *opts_set,
++ struct gcc_options */* opts_set */,
+ bool warn_compatible)
+ {
+ const cpu_option *arm_selected_tune = NULL;
+@@ -3196,7 +3196,7 @@ arm_configure_build_target (struct arm_b
+ target->core_name = NULL;
+ target->arch_name = NULL;
+
+- if (opts_set->x_arm_arch_string)
++ if (opts->x_arm_arch_specified)
+ {
+ arm_selected_arch = arm_parse_arch_option_name (all_architectures,
+ "-march",
+@@ -3204,7 +3204,7 @@ arm_configure_build_target (struct arm_b
+ arch_opts = strchr (opts->x_arm_arch_string, '+');
+ }
+
+- if (opts_set->x_arm_cpu_string)
++ if (opts->x_arm_cpu_specified)
+ {
+ arm_selected_cpu = arm_parse_cpu_option_name (all_cores, "-mcpu",
+ opts->x_arm_cpu_string);
+@@ -3214,7 +3214,7 @@ arm_configure_build_target (struct arm_b
+ options for tuning. */
+ }
+
+- if (opts_set->x_arm_tune_string)
++ if (opts->x_arm_tune_specified)
+ {
+ arm_selected_tune = arm_parse_cpu_option_name (all_cores, "-mtune",
+ opts->x_arm_tune_string);
+--- gcc/common/config/arm/arm-common.c.jj 2020-07-28 15:39:09.705760394 +0200
++++ gcc/common/config/arm/arm-common.c 2020-09-12 13:50:09.021738456 +0200
+@@ -1021,6 +1021,34 @@ arm_asm_auto_mfpu (int argc, const char
+
+ #undef ARM_CPU_NAME_LENGTH
+
++bool
++arm_handle_option (struct gcc_options *opts,
++ struct gcc_options *opts_set ATTRIBUTE_UNUSED,
++ const struct cl_decoded_option *decoded,
++ location_t loc ATTRIBUTE_UNUSED)
++{
++ size_t code = decoded->opt_index;
++ const char *arg = decoded->arg;
++ int val = decoded->value;
++
++ switch (code)
++ {
++ case OPT_march_:
++ opts->x_arm_arch_specified = true;
++ return true;
++
++ case OPT_mcpu_:
++ opts->x_arm_cpu_specified = true;
++ return true;
++
++ case OPT_mtune_:
++ opts->x_arm_tune_specified = true;
++ return true;
++
++ default:
++ return true;
++ }
++}
+
+ #undef TARGET_DEFAULT_TARGET_FLAGS
+ #define TARGET_DEFAULT_TARGET_FLAGS (TARGET_DEFAULT | MASK_SCHED_PROLOG)
+@@ -1031,4 +1059,7 @@ arm_asm_auto_mfpu (int argc, const char
+ #undef TARGET_EXCEPT_UNWIND_INFO
+ #define TARGET_EXCEPT_UNWIND_INFO arm_except_unwind_info
+
++#undef TARGET_HANDLE_OPTION
++#define TARGET_HANDLE_OPTION arm_handle_option
++
+ struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
diff --git a/gcc10-pr96939.patch b/gcc10-pr96939.patch
new file mode 100644
index 0000000..4659c3f
--- /dev/null
+++ b/gcc10-pr96939.patch
@@ -0,0 +1,64 @@
+2020-09-07 Jakub Jelinek
+
+ PR target/96939
+ * config/arm/arm.c (arm_override_options_after_change): Don't call
+ arm_configure_build_target here.
+ (arm_set_current_function): Call arm_override_options_after_change_1
+ at the end.
+
+ * gcc.target/arm/lto/pr96939_0.c: New test.
+ * gcc.target/arm/lto/pr96939_1.c: New file.
+
+--- gcc/config/arm/arm.c.jj 2020-07-30 15:04:38.136293101 +0200
++++ gcc/config/arm/arm.c 2020-09-07 10:43:54.809561852 +0200
+@@ -3037,10 +3037,6 @@ arm_override_options_after_change_1 (str
+ static void
+ arm_override_options_after_change (void)
+ {
+- arm_configure_build_target (&arm_active_target,
+- TREE_TARGET_OPTION (target_option_default_node),
+- &global_options_set, false);
+-
+ arm_override_options_after_change_1 (&global_options);
+ }
+
+@@ -32338,6 +32334,8 @@ arm_set_current_function (tree fndecl)
+ cl_target_option_restore (&global_options, TREE_TARGET_OPTION (new_tree));
+
+ save_restore_target_globals (new_tree);
++
++ arm_override_options_after_change_1 (&global_options);
+ }
+
+ /* Implement TARGET_OPTION_PRINT. */
+--- gcc/testsuite/gcc.target/arm/lto/pr96939_0.c.jj 2020-09-07 11:26:45.909937609 +0200
++++ gcc/testsuite/gcc.target/arm/lto/pr96939_0.c 2020-09-07 11:29:18.722706535 +0200
+@@ -0,0 +1,15 @@
++/* PR target/96939 */
++/* { dg-lto-do link } */
++/* { dg-require-effective-target arm_arch_v8a_ok } */
++/* { dg-lto-options { { -flto -O2 } } } */
++
++extern unsigned crc (unsigned, const void *);
++typedef unsigned (*fnptr) (unsigned, const void *);
++volatile fnptr fn;
++
++int
++main ()
++{
++ fn = crc;
++ return 0;
++}
+--- gcc/testsuite/gcc.target/arm/lto/pr96939_1.c.jj 2020-09-07 11:26:49.365887153 +0200
++++ gcc/testsuite/gcc.target/arm/lto/pr96939_1.c 2020-09-07 11:25:13.885281180 +0200
+@@ -0,0 +1,10 @@
++/* PR target/96939 */
++/* { dg-options "-march=armv8-a+crc" } */
++
++#include
++
++unsigned
++crc (unsigned x, const void *y)
++{
++ return __crc32cw (x, *(unsigned *) y);
++}
diff --git a/gcc10-pr97060.patch b/gcc10-pr97060.patch
new file mode 100644
index 0000000..bd0d7be
--- /dev/null
+++ b/gcc10-pr97060.patch
@@ -0,0 +1,34 @@
+2020-11-11 Jason Merrill
+
+ PR debug/97060
+ * dwarf2out.c (gen_subprogram_die): It's a declaration
+ if DECL_INITIAL isn't set.
+
+ * gcc.dg/debug/dwarf2/pr97060.c: New test.
+
+--- gcc/dwarf2out.c
++++ gcc/dwarf2out.c
+@@ -22859,6 +22859,7 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
+ available.
+ */
+ int declaration = (current_function_decl != decl
++ || (!DECL_INITIAL (decl) && !origin)
+ || class_or_namespace_scope_p (context_die));
+
+ /* A declaration that has been previously dumped needs no
+--- gcc/testsuite/gcc.dg/debug/dwarf2/pr97060.c
++++ gcc/testsuite/gcc.dg/debug/dwarf2/pr97060.c
+@@ -0,0 +1,13 @@
++/* PR debug/97060 */
++/* { dg-do compile } */
++/* { dg-options "-g -dA" } */
++/* { dg-final { scan-assembler-times "DW_AT_declaration" 2 } } */
++
++extern int foo (unsigned int, unsigned int);
++
++int
++bar (void)
++{
++ foo (1, 2);
++ return 0;
++}
diff --git a/gcc10-rh1574936.patch b/gcc10-rh1574936.patch
new file mode 100644
index 0000000..6b4be0c
--- /dev/null
+++ b/gcc10-rh1574936.patch
@@ -0,0 +1,30 @@
+crt files and statically linked libgcc objects cause false positives
+in annobin coverage, so we add the assembler flag to generate notes
+for them.
+
+The patch also adds notes to libgcc_s.so, but this is harmless because
+these notes only confer that there is no other annobin markup.
+
+2018-07-25 Florian Weimer
+
+ * Makefile.in (LIBGCC2_CFLAGS, CRTSTUFF_CFLAGS): Add
+ -Wa,--generate-missing-build-notes=yes.
+
+--- libgcc/Makefile.in 2018-01-13 13:05:41.000000000 +0100
++++ libgcc/Makefile.in 2018-07-25 13:15:02.036226940 +0200
+@@ -246,6 +246,7 @@ LIBGCC2_DEBUG_CFLAGS = -g
+ LIBGCC2_CFLAGS = -O2 $(LIBGCC2_INCLUDES) $(GCC_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
+ $(LIBGCC2_DEBUG_CFLAGS) -DIN_LIBGCC2 \
+ -fbuilding-libgcc -fno-stack-protector \
++ -Wa,--generate-missing-build-notes=yes \
+ $(INHIBIT_LIBC_CFLAGS)
+
+ # Additional options to use when compiling libgcc2.a.
+@@ -301,6 +302,7 @@ CRTSTUFF_CFLAGS = -O2 $(GCC_CFLAGS) $(IN
+ $(NO_PIE_CFLAGS) -finhibit-size-directive -fno-inline -fno-exceptions \
+ -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize \
+ -fbuilding-libgcc -fno-stack-protector $(FORCE_EXPLICIT_EH_REGISTRY) \
++ -Wa,--generate-missing-build-notes=yes \
+ $(INHIBIT_LIBC_CFLAGS) $(USE_TM_CLONE_REGISTRY)
+
+ # Extra flags to use when compiling crt{begin,end}.o.
diff --git a/gcc16-sparc-config-detection.patch b/gcc10-sparc-config-detection.patch
similarity index 77%
rename from gcc16-sparc-config-detection.patch
rename to gcc10-sparc-config-detection.patch
index bbe8ec3..bb06b35 100644
--- a/gcc16-sparc-config-detection.patch
+++ b/gcc10-sparc-config-detection.patch
@@ -1,21 +1,21 @@
--- gcc/config.gcc.jj 2008-04-24 15:42:46.000000000 -0500
+++ gcc/config.gcc 2008-04-24 15:44:51.000000000 -0500
-@@ -3330,7 +3330,7 @@ sparc-*-rtems*)
- tm_file="${tm_file} elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
+@@ -2790,7 +2790,7 @@ sparc-*-rtems*)
+ tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h sparc/sp-elf.h sparc/rtemself.h rtems.h newlib-stdint.h"
tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems"
;;
-sparc-*-linux*)
+sparc-*-linux* | sparcv9-*-linux*)
- tm_file="${tm_file} elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
+ tm_file="${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/tso.h"
extra_options="${extra_options} sparc/long-double-switch.opt"
case ${target} in
-@@ -3384,7 +3384,7 @@ sparc64-*-rtems*)
+@@ -2844,7 +2844,7 @@ sparc64-*-rtems*)
extra_options="${extra_options}"
tmake_file="${tmake_file} sparc/t-sparc sparc/t-rtems-64"
;;
-sparc64-*-linux*)
+sparc64*-*-linux*)
- tm_file="sparc/biarch64.h ${tm_file} elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default64.h sparc/linux64.h sparc/tso.h"
+ tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h sparc/sysv4.h gnu-user.h linux.h glibc-stdint.h sparc/default64.h sparc/linux64.h sparc/tso.h"
extra_options="${extra_options} sparc/long-double-switch.opt"
tmake_file="${tmake_file} sparc/t-sparc sparc/t-linux64"
--- libgcc/config.host.jj 2008-04-24 15:46:19.000000000 -0500
diff --git a/gcc16-Wno-format-security.patch b/gcc16-Wno-format-security.patch
deleted file mode 100644
index 2a4f0f3..0000000
--- a/gcc16-Wno-format-security.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-2022-01-07 Jakub Jelinek
-
- * Makefile.tpl (GOCFLAGS, GDCFLAGS): Filter out -Wformat-security.
- * Makefile.in: Regenerated.
-
-2017-02-25 Jakub Jelinek
-
- * configure.ac: When adding -Wno-format, also add -Wno-format-security.
- * configure: Regenerated.
-
---- gcc/configure.ac.jj 2017-02-13 12:20:53.000000000 +0100
-+++ gcc/configure.ac 2024-11-30 13:34:11.100296256 +0100
-@@ -592,7 +592,7 @@ AC_ARG_ENABLE(build-format-warnings,
- AS_HELP_STRING([--disable-build-format-warnings],[don't use -Wformat while building GCC]),
- [],[enable_build_format_warnings=yes])
- AS_IF([test $enable_build_format_warnings = no],
-- [wf_opt=-Wno-format],[wf_opt=])
-+ [wf_opt="-Wno-format -Wno-format-security"],[wf_opt=])
- ACX_PROG_CXX_WARNING_OPTS(
- m4_quote(m4_do([-W -Wall -Wno-error=narrowing -Wwrite-strings ],
- [-Wcast-qual $wf_opt])),
---- gcc/configure.jj 2017-02-13 12:20:52.000000000 +0100
-+++ gcc/configure 2017-02-25 12:42:50.041946391 +0100
-@@ -7077,7 +7077,7 @@ else
- fi
-
- if test $enable_build_format_warnings = no; then :
-- wf_opt=-Wno-format
-+ wf_opt="-Wno-format -Wno-format-security"
- else
- wf_opt=
- fi
---- Makefile.tpl.jj 2023-11-29 13:21:41.680292662 +0100
-+++ Makefile.tpl 2024-11-30 13:35:29.303196246 +0100
-@@ -450,10 +450,10 @@ LDFLAGS = @LDFLAGS@
- LIBCFLAGS = $(CFLAGS)
- CXXFLAGS = @CXXFLAGS@
- LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
--GOCFLAGS = $(CFLAGS)
--A68FLAGS = @A68FLAGS@
--GDCFLAGS = @GDCFLAGS@
--GM2FLAGS = $(CFLAGS)
-+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-+A68FLAGS = $(filter-out -Wformat-security,@A68FLAGS@)
-+GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
-+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-
- CRAB1_LIBS = @CRAB1_LIBS@
-
---- Makefile.in.jj 2023-11-29 13:21:41.691292507 +0100
-+++ Makefile.in 2024-11-30 13:36:12.113594079 +0100
-@@ -447,10 +447,10 @@ LDFLAGS = @LDFLAGS@
- LIBCFLAGS = $(CFLAGS)
- CXXFLAGS = @CXXFLAGS@
- LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
--GOCFLAGS = $(CFLAGS)
--A68FLAGS = @A68FLAGS@
--GDCFLAGS = @GDCFLAGS@
--GM2FLAGS = $(CFLAGS)
-+GOCFLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-+A68FLAGS = $(filter-out -Wformat-security,@A68FLAGS@)
-+GDCFLAGS = $(filter-out -Wformat-security,@GDCFLAGS@)
-+GM2FLAGS = $(filter-out -Wformat-security,$(CFLAGS))
-
- CRAB1_LIBS = @CRAB1_LIBS@
-
diff --git a/gcc16-fortran-fdec-duplicates.patch b/gcc16-fortran-fdec-duplicates.patch
deleted file mode 100644
index 5298baa..0000000
--- a/gcc16-fortran-fdec-duplicates.patch
+++ /dev/null
@@ -1,215 +0,0 @@
-From 23b1fcb104c666429451ffaf936f8da5fcd3d43a Mon Sep 17 00:00:00 2001
-From: Mark Eggleston
-Date: Fri, 22 Jan 2021 12:29:47 +0000
-Subject: [PATCH 01/10] Allow duplicate declarations.
-
-Enabled by -fdec-duplicates and -fdec.
-
-Some fixes by Jim MacArthur
-Addition of -fdec-duplicates by Mark Eggleston
----
- gcc/fortran/lang.opt | 4 ++++
- gcc/fortran/options.cc | 1 +
- gcc/fortran/symbol.cc | 21 +++++++++++++++++--
- .../gfortran.dg/duplicate_type_4.f90 | 13 ++++++++++++
- .../gfortran.dg/duplicate_type_5.f90 | 13 ++++++++++++
- .../gfortran.dg/duplicate_type_6.f90 | 13 ++++++++++++
- .../gfortran.dg/duplicate_type_7.f90 | 13 ++++++++++++
- .../gfortran.dg/duplicate_type_8.f90 | 12 +++++++++++
- .../gfortran.dg/duplicate_type_9.f90 | 12 +++++++++++
- 9 files changed, 100 insertions(+), 2 deletions(-)
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_4.f90
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_5.f90
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_6.f90
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_7.f90
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_8.f90
- create mode 100644 gcc/testsuite/gfortran.dg/duplicate_type_9.f90
-
-diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt
-index 2b1977c523b..52bd522051e 100644
---- a/gcc/fortran/lang.opt
-+++ b/gcc/fortran/lang.opt
-@@ -469,6 +469,10 @@ Fortran Var(flag_dec_char_conversions)
- Enable the use of character literals in assignments and data statements
- for non-character variables.
-
-+fdec-duplicates
-+Fortran Var(flag_dec_duplicates)
-+Allow varibles to be duplicated in the type specification matches.
-+
- fdec-include
- Fortran Var(flag_dec_include)
- Enable legacy parsing of INCLUDE as statement.
-diff --git a/gcc/fortran/options.cc b/gcc/fortran/options.cc
-index 3a0b98bf1ec..f19ba87f8a0 100644
---- a/gcc/fortran/options.cc
-+++ b/gcc/fortran/options.cc
-@@ -77,6 +77,7 @@ set_dec_flags (int value)
- SET_BITFLAG (flag_dec_format_defaults, value, value);
- SET_BITFLAG (flag_dec_blank_format_item, value, value);
- SET_BITFLAG (flag_dec_char_conversions, value, value);
-+ SET_BITFLAG (flag_dec_duplicates, value, value);
- }
-
- /* Finalize DEC flags. */
-diff --git a/gcc/fortran/symbol.cc b/gcc/fortran/symbol.cc
-index 3b988d1be22..9843175cc2a 100644
---- a/gcc/fortran/symbol.cc
-+++ b/gcc/fortran/symbol.cc
-@@ -1995,6 +1995,8 @@ gfc_add_type (gfc_symbol *sym, gfc_typespec *ts, locus *where)
- if (sym->attr.result && type == BT_UNKNOWN && sym->ns->proc_name)
- type = sym->ns->proc_name->ts.type;
-
-+ flavor = sym->attr.flavor;
-+
- if (type != BT_UNKNOWN && !(sym->attr.function && sym->attr.implicit_type)
- && !(gfc_state_stack->previous && gfc_state_stack->previous->previous
- && gfc_state_stack->previous->previous->state == COMP_SUBMODULE)
-@@ -2007,6 +2009,23 @@ gfc_add_type (gfc_symbol *sym, gfc_typespec *ts, locus *where)
- else if (sym->attr.function && sym->attr.result)
- gfc_error ("Symbol %qs at %L already has basic type of %s",
- sym->ns->proc_name->name, where, gfc_basic_typename (type));
-+ else if (flag_dec_duplicates)
-+ {
-+ /* Ignore temporaries and class/procedure names */
-+ if (sym->ts.type == BT_DERIVED || sym->ts.type == BT_CLASS
-+ || sym->ts.type == BT_PROCEDURE)
-+ return false;
-+
-+ if (gfc_compare_types (&sym->ts, ts)
-+ && (flavor == FL_UNKNOWN || flavor == FL_VARIABLE
-+ || flavor == FL_PROCEDURE))
-+ {
-+ return gfc_notify_std (GFC_STD_LEGACY,
-+ "Symbol '%qs' at %L already has "
-+ "basic type of %s", sym->name, where,
-+ gfc_basic_typename (type));
-+ }
-+ }
- else
- gfc_error ("Symbol %qs at %L already has basic type of %s", sym->name,
- where, gfc_basic_typename (type));
-@@ -2020,8 +2039,6 @@ gfc_add_type (gfc_symbol *sym, gfc_typespec *ts, locus *where)
- return false;
- }
-
-- flavor = sym->attr.flavor;
--
- if (flavor == FL_PROGRAM || flavor == FL_BLOCK_DATA || flavor == FL_MODULE
- || flavor == FL_LABEL
- || (flavor == FL_PROCEDURE && sym->attr.subroutine)
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_4.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_4.f90
-new file mode 100644
-index 00000000000..cdd29ea8846
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_4.f90
-@@ -0,0 +1,13 @@
-+! { dg-do compile }
-+! { dg-options "-std=f95" }
-+
-+! PR fortran/30239
-+! Check for errors when a symbol gets declared a type twice, even if it
-+! is the same.
-+
-+INTEGER FUNCTION foo ()
-+ IMPLICIT NONE
-+ INTEGER :: x
-+ INTEGER :: x ! { dg-error "basic type of" }
-+ x = 42
-+END FUNCTION foo
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_5.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_5.f90
-new file mode 100644
-index 00000000000..00f931809aa
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_5.f90
-@@ -0,0 +1,13 @@
-+! { dg-do run }
-+! { dg-options "-fdec" }
-+!
-+! Test case contributed by Mark Eggleston
-+!
-+
-+program test
-+ implicit none
-+ integer :: x
-+ integer :: x
-+ x = 42
-+ if (x /= 42) stop 1
-+end program test
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_6.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_6.f90
-new file mode 100644
-index 00000000000..f0df27e323c
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_6.f90
-@@ -0,0 +1,13 @@
-+! { dg-do run }
-+! { dg-options "-std=legacy -fdec-duplicates" }
-+!
-+! Test case contributed by Mark Eggleston
-+!
-+
-+program test
-+ implicit none
-+ integer :: x
-+ integer :: x
-+ x = 42
-+ if (x /= 42) stop 1
-+end program test
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_7.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_7.f90
-new file mode 100644
-index 00000000000..f32472ff586
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_7.f90
-@@ -0,0 +1,13 @@
-+! { dg-do run }
-+! { dg-options "-fdec-duplicates" }
-+!
-+! Test case contributed by Mark Eggleston
-+!
-+
-+program test
-+ implicit none
-+ integer :: x
-+ integer :: x! { dg-warning "Legacy Extension" }
-+ x = 42
-+ if (x /= 42) stop 1
-+end program test
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_8.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_8.f90
-new file mode 100644
-index 00000000000..23c94add179
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_8.f90
-@@ -0,0 +1,12 @@
-+! { dg-do compile }
-+! { dg-options "-fdec -fno-dec-duplicates" }
-+!
-+! Test case contributed by Mark Eggleston
-+!
-+
-+integer function foo ()
-+ implicit none
-+ integer :: x
-+ integer :: x ! { dg-error "basic type of" }
-+ x = 42
-+end function foo
-diff --git a/gcc/testsuite/gfortran.dg/duplicate_type_9.f90 b/gcc/testsuite/gfortran.dg/duplicate_type_9.f90
-new file mode 100644
-index 00000000000..d5edee4d8ee
---- /dev/null
-+++ b/gcc/testsuite/gfortran.dg/duplicate_type_9.f90
-@@ -0,0 +1,12 @@
-+! { dg-do compile }
-+! { dg-options "-fdec-duplicates -fno-dec-duplicates" }
-+!
-+! Test case contributed by Mark Eggleston
-+!
-+
-+integer function foo ()
-+ implicit none
-+ integer :: x
-+ integer :: x ! { dg-error "basic type of" }
-+ x = 42
-+end function foo
---
-2.27.0
-
diff --git a/gcc16-isl-dl2.patch b/gcc16-isl-dl2.patch
deleted file mode 100644
index 8d2c4d9..0000000
--- a/gcc16-isl-dl2.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-2011-04-04 Jakub Jelinek
-
- * toplev.cc (toplev_main_argv): New variable.
- (toplev_main): Initialize it.
- * graphite.cc (init_isl_pointers): Load libisl.so.23 from gcc's private
- directory.
-
---- gcc/toplev.cc.jj 2008-12-09 23:59:10.000000000 +0100
-+++ gcc/toplev.cc 2024-11-30 13:26:05.085132543 +0100
-@@ -112,6 +112,8 @@ static void finalize ();
- static void crash_signal (int) ATTRIBUTE_NORETURN;
- static void compile_file (void);
-
-+const char **toplev_main_argv;
-+
- /* Decoded options, and number of such options. */
- struct cl_decoded_option *save_decoded_options;
- unsigned int save_decoded_options_count;
-@@ -2296,6 +2298,8 @@ toplev::main (int argc, char **argv)
-
- expandargv (&argc, &argv);
-
-+ toplev_main_argv = CONST_CAST2 (const char **, char **, argv);
-+
- /* Initialization of GCC's environment, and diagnostics. */
- general_init (argv[0], m_init_signals, std::move (original_argv));
-
---- gcc/graphite.cc.jj 2010-12-01 10:24:32.000000000 -0500
-+++ gcc/graphite.cc 2010-12-01 11:46:07.832118193 -0500
-@@ -64,11 +64,39 @@ __typeof (isl_pointers__) isl_pointers__
- static bool
- init_isl_pointers (void)
- {
-- void *h;
-+ void *h = NULL;
-+ extern const char **toplev_main_argv;
-+ char *buf, *p;
-+ size_t len;
-
- if (isl_pointers__.inited)
- return isl_pointers__.h != NULL;
-- h = dlopen ("libisl.so.23", RTLD_LAZY);
-+ len = progname - toplev_main_argv[0];
-+ buf = XALLOCAVAR (char, len + sizeof "libisl.so.23");
-+ memcpy (buf, toplev_main_argv[0], len);
-+ strcpy (buf + len, "libisl.so.23");
-+ len += sizeof "libisl.so.23";
-+ p = strstr (buf, "/libexec/");
-+ if (p != NULL)
-+ {
-+ while (1)
-+ {
-+ char *q = strstr (p + 8, "/libexec/");
-+ if (q == NULL)
-+ break;
-+ p = q;
-+ }
-+ memmove (p + 4, p + 8, len - (p + 8 - buf));
-+ h = dlopen (buf, RTLD_LAZY);
-+ if (h == NULL)
-+ {
-+ len = progname - toplev_main_argv[0];
-+ memcpy (buf, toplev_main_argv[0], len);
-+ strcpy (buf + len, "libisl.so.23");
-+ }
-+ }
-+ if (h == NULL)
-+ h = dlopen (buf, RTLD_LAZY);
- isl_pointers__.h = h;
- if (h == NULL)
- return false;
diff --git a/gcc16-pr119006.patch b/gcc16-pr119006.patch
deleted file mode 100644
index dfbdaa9..0000000
--- a/gcc16-pr119006.patch
+++ /dev/null
@@ -1,76 +0,0 @@
-2025-02-27 Jakub Jelinek
-
- PR ipa/119006
- * ipa-icf-gimple.cc (func_checker::compare_operand): If t1 and t2
- are ADDR_EXPRs, call operand_equal_p on their operands rather than on
- the ADDR_EXPRs themselves. Formatting fix.
-
- * g++.dg/opt/pr119006.C: New test.
-
---- gcc/ipa-icf-gimple.cc.jj 2025-02-01 00:50:02.080774328 +0100
-+++ gcc/ipa-icf-gimple.cc 2025-02-27 14:35:19.931183246 +0100
-@@ -437,12 +437,23 @@ func_checker::compare_operand (tree t1,
- ("compare_ao_refs failed (dependence clique difference)");
- gcc_unreachable ();
- }
-+ else if (TREE_CODE (t1) == ADDR_EXPR && TREE_CODE (t2) == ADDR_EXPR)
-+ {
-+ /* For ADDR_EXPR compare the operands of the ADDR_EXPR rather than
-+ the ADDR_EXPRs themselves. operand_equal_p will compare the
-+ operands with OEP_ADDRESS_OF and only care about the value
-+ of the ADDR_EXPR, rather than e.g. types of MEM_REFs in there.
-+ Some optimizations use such details though, see PR119006. */
-+ if (operand_equal_p (TREE_OPERAND (t1, 0), TREE_OPERAND (t2, 0),
-+ OEP_MATCH_SIDE_EFFECTS))
-+ return true;
-+ return return_false_with_msg ("operand_equal_p failed");
-+ }
- else
- {
- if (operand_equal_p (t1, t2, OEP_MATCH_SIDE_EFFECTS))
- return true;
-- return return_false_with_msg
-- ("operand_equal_p failed");
-+ return return_false_with_msg ("operand_equal_p failed");
- }
- }
-
---- gcc/testsuite/g++.dg/opt/pr119006.C.jj 2025-02-27 14:37:05.952707350 +0100
-+++ gcc/testsuite/g++.dg/opt/pr119006.C 2025-02-27 14:36:29.251218260 +0100
-@@ -0,0 +1,36 @@
-+// PR ipa/119006
-+// { dg-do run { target c++11 } }
-+// { dg-options "-O2 -fwhole-program" }
-+
-+struct A {
-+ bool operator== (const char *x) const { return x && !__builtin_strcmp (a, x); }
-+ char a[11];
-+};
-+
-+struct B {
-+ bool operator== (const char *x) const { return x && !__builtin_strcmp (a, x); }
-+ bool operator!= (const char *x) const { return !(*this == x); }
-+ char a[128];
-+};
-+
-+[[gnu::noinline,gnu::used]] int
-+foo (const A& lhs, const char* rhs)
-+{
-+ return lhs == rhs;
-+}
-+
-+constexpr const char *t = "abcdefghijklmno";
-+
-+[[gnu::noinline,gnu::used]] void
-+bar (B x)
-+{
-+ if (x != t) __builtin_abort ();
-+}
-+
-+int
-+main ()
-+{
-+ B b;
-+ __builtin_strcpy (b.a, t);
-+ bar (b);
-+}
diff --git a/gcc16-pr123273.patch b/gcc16-pr123273.patch
deleted file mode 100644
index 987f6e0..0000000
--- a/gcc16-pr123273.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-2026-01-06 Jakub Jelinek
-
- PR preprocessor/123273
- * lex.cc (cpp_directive_only_process): Only go to done_comment
- for '/' if star is true and esc is false. When seeing '\\' with
- esc set to true, clear esc as well as star instead of keeping esc
- set.
-
- * c-c++-common/cpp/dir-only-10.c: New test.
- * c-c++-common/cpp/dir-only-11.c: New test.
-
---- libcpp/lex.cc.jj 2026-01-02 09:56:10.417332292 +0100
-+++ libcpp/lex.cc 2026-01-05 16:40:26.413766032 +0100
-@@ -5461,7 +5461,13 @@ cpp_directive_only_process (cpp_reader *
- switch (c)
- {
- case '\\':
-- esc = true;
-+ if (esc)
-+ {
-+ star = false;
-+ esc = false;
-+ }
-+ else
-+ esc = true;
- break;
-
- case '\r':
-@@ -5492,7 +5498,7 @@ cpp_directive_only_process (cpp_reader *
- break;
-
- case '/':
-- if (star)
-+ if (star && !esc)
- goto done_comment;
- /* FALLTHROUGH */
-
---- gcc/testsuite/c-c++-common/cpp/dir-only-10.c.jj 2026-01-05 17:04:26.144566116 +0100
-+++ gcc/testsuite/c-c++-common/cpp/dir-only-10.c 2026-01-05 17:05:02.226946201 +0100
-@@ -0,0 +1,5 @@
-+/* PR preprocessor/123273 */
-+/* { dg-do preprocess } */
-+/* { dg-options -fdirectives-only } */
-+
-+/* *\/""" */
---- gcc/testsuite/c-c++-common/cpp/dir-only-11.c.jj 2026-01-05 17:05:18.498666647 +0100
-+++ gcc/testsuite/c-c++-common/cpp/dir-only-11.c 2026-01-05 17:06:17.574651691 +0100
-@@ -0,0 +1,6 @@
-+/* PR preprocessor/123273 */
-+/* { dg-do preprocess } */
-+/* { dg-options -fdirectives-only } */
-+
-+/* *\\
-+/""" */
diff --git a/gcc16-rh1574936.patch b/gcc16-rh1574936.patch
deleted file mode 100644
index bcc7000..0000000
--- a/gcc16-rh1574936.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-crt files and statically linked libgcc objects cause false positives
-in annobin coverage, so we add the assembler flag to generate notes
-for them.
-
-The patch also adds notes to libgcc_s.so, but this is harmless because
-these notes only confer that there is no other annobin markup.
-
-2018-07-25 Florian Weimer
-
- * config/t-linux (LIBGCC2_CFLAGS, CRTSTUFF_CFLAGS): Add
- -Wa,--generate-missing-build-notes=yes.
-
---- libgcc/config/t-linux 2022-12-15 19:25:20.581394950 +0100
-+++ libgcc/config/t-linux 2023-03-21 22:00:37.054478562 +0100
-@@ -1,3 +1,6 @@
- # Override t-slibgcc-elf-ver to export some libgcc symbols with
- # the symbol versions that glibc used.
- SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
-+
-+LIBGCC2_CFLAGS += -Wa,--generate-missing-build-notes=yes
-+CRTSTUFF_CFLAGS += -Wa,--generate-missing-build-notes=yes
diff --git a/isl-rh2155127.patch b/isl-rh2155127.patch
deleted file mode 100644
index 092bddb..0000000
--- a/isl-rh2155127.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From: Sven Verdoolaege
-Date: Mon, 6 Jun 2022 12:56:02 +0000 (+0200)
-Subject: update m4/ax_prog_cc_for_build.m4
-X-Git-Tag: isl-0.25~11
-X-Git-Url: https://repo.or.cz/isl.git/commitdiff_plain/b4dcdfadc29a6c9f410a72f345f3f32725b1d38b
-
-update m4/ax_prog_cc_for_build.m4
-
-In particular, update to the latest version from the autoconf archive,
-but preserve the changes from isl-0.22.1-358-gcd42abdf2
-(m4/ax_prog_cc_for_build.m4: do not override host compiler dependency style,
-Tue Jun 9 10:54:10 2020 +0200).
-
-Signed-off-by: Sven Verdoolaege
-
---- isl-0.24/m4/ax_prog_cc_for_build.m4.jj 2021-03-02 12:07:09.000000000 +0100
-+++ isl-0.24/m4/ax_prog_cc_for_build.m4 2022-12-20 18:11:18.855777817 +0100
-@@ -32,7 +32,7 @@
- # and this notice are preserved. This file is offered as-is, without any
- # warranty.
-
--#serial 18
-+#serial 21
-
- AU_ALIAS([AC_PROG_CC_FOR_BUILD], [AX_PROG_CC_FOR_BUILD])
- AC_DEFUN([AX_PROG_CC_FOR_BUILD], [dnl
-@@ -44,6 +44,8 @@ dnl Use the standard macros, but make th
- dnl
- pushdef([ac_cv_prog_CPP], ac_cv_build_prog_CPP)dnl
- pushdef([ac_cv_prog_cc_c89], ac_cv_build_prog_cc_c89)dnl
-+pushdef([ac_cv_prog_cc_c99], ac_cv_build_prog_cc_c99)dnl
-+pushdef([ac_cv_prog_cc_c11], ac_cv_build_prog_cc_c11)dnl
- pushdef([ac_cv_prog_gcc], ac_cv_build_prog_gcc)dnl
- pushdef([ac_cv_prog_cc_works], ac_cv_build_prog_cc_works)dnl
- pushdef([ac_cv_prog_cc_cross], ac_cv_build_prog_cc_cross)dnl
-@@ -86,7 +88,21 @@ AS_IF([test -n "$build"], [ac_build
- [test -n "$build_alias"],[ac_build_tool_prefix="$build_alias-"])
-
- AC_LANG_PUSH([C])
-+
-+dnl The pushdef([ac_cv_c_compiler_gnu], ...) currently does not cover
-+dnl the use of this variable in _AC_LANG_COMPILER_GNU called by
-+dnl AC_PROG_CC. Unset this cache variable temporarily as a workaround.
-+was_set_c_compiler_gnu=${[ac_cv_c_compiler_gnu]+y}
-+AS_IF([test ${was_set_c_compiler_gnu}],
-+ [saved_c_compiler_gnu=$[ac_cv_c_compiler_gnu]
-+ AS_UNSET([[ac_cv_c_compiler_gnu]])])
-+
- AC_PROG_CC
-+
-+dnl Restore ac_cv_c_compiler_gnu
-+AS_IF([test ${was_set_c_compiler_gnu}],
-+ [[ac_cv_c_compiler_gnu]=$[saved_c_compiler_gnu]])
-+
- _AC_COMPILER_EXEEXT
- _AC_COMPILER_OBJEXT
- AC_PROG_CPP
---- isl-0.24/configure.jj 2021-04-26 11:13:19.000000000 +0200
-+++ isl-0.24/configure 2022-12-20 18:11:36.882518568 +0100
-@@ -5002,6 +4990,13 @@ ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR
- ac_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_build_c_compiler_gnu
-
-+
-+was_set_c_compiler_gnu=${ac_cv_c_compiler_gnu+y}
-+if test ${was_set_c_compiler_gnu}; then :
-+ saved_c_compiler_gnu=$ac_cv_c_compiler_gnu
-+ { ac_cv_c_compiler_gnu=; unset ac_cv_c_compiler_gnu;}
-+fi
-+
- ac_ext=c
- ac_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
- ac_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
-@@ -5728,6 +5723,11 @@ else
- fi
-
-
-+
-+if test ${was_set_c_compiler_gnu}; then :
-+ ac_cv_c_compiler_gnu=$saved_c_compiler_gnu
-+fi
-+
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
-
diff --git a/plans/ci.fmf b/plans/ci.fmf
deleted file mode 100644
index b661134..0000000
--- a/plans/ci.fmf
+++ /dev/null
@@ -1,13 +0,0 @@
-summary: CI Gating Plan
-discover:
- how: fmf
- url: https://gitlab.com/redhat/centos-stream/tests/gcc.git
- filter: 'tag: Fedora-CI-gating'
-execute:
- how: tmt
-adjust:
- - prepare+:
- - name: Add secondary architecture RPMs
- how: shell
- script: ./plans/provide_secondary_arch_rpms.sh
- when: arch == x86_64
diff --git a/plans/provide_secondary_arch_rpms.sh b/plans/provide_secondary_arch_rpms.sh
deleted file mode 100755
index f26a5ab..0000000
--- a/plans/provide_secondary_arch_rpms.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/env bash
-
-# Fedora CI testing systems don't provide a repository with the i686
-# RPMs of the build being tested. As a consequence, most
-# dnf install -y .i686
-# commands (whether being run by a test or by TMT's prepare) will probably
-# fail on a version mismatch with the present x86_64 gcc RPMs. To prevent
-# such failures we provide this script which we recommend to include in every
-# Fedora CI test plan.
-#
-# Implementation notes:
-#
-# * The gcc build being tested in Fedora CI is given via KOJI_TASK_ID. See
-# https://github.com/fedora-ci/dist-git-pipeline/pull/50 for details.
-#
-# * Currently this script just downloads and installs the i686 RPMs. It
-# would not be sufficient for tests that uninstall and reinstall those
-# RPMs. If such a test appears, this script should create a repository.
-#
-# * Fedora CI testing systems seem to have extremely small RAM-based /tmp,
-# unable to host all the downloaded RPMs, and no other "real" filesystem
-# than "/". That's the reason for using
-# mktemp -d --tmpdir=/
-
-set -x
-
-true "V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V-V"
-
-echo "KOJI_TASK_ID=$KOJI_TASK_ID"
-
-. /etc/os-release
-
-echo "ID=$ID"
-echo "arch=$(arch)"
-echo "KOJI_TASK_ID=$KOJI_TASK_ID"
-
-if [[ "$ID" = fedora ]] && [[ "$(arch)" = x86_64 ]] && [[ -n "$KOJI_TASK_ID" ]]; then
-
- if tmpd=$(mktemp -d --tmpdir=/) && pushd "$tmpd"; then
-
- # Download
- rpm -q koji || dnf -y install koji
- koji download-task "$KOJI_TASK_ID" --noprogress --arch={x86_64,i686,noarch}
-
- # Remove conflicting RPMs
- rm -f ./*debuginfo* ./*debugsource*
- rm -f gcc-[0-9]*.i686.*
- rm -f ./*docs*.i686.*
-
- # Install
- ls
- dnf -y install ./*.rpm
-
- # Clean up
- # shellcheck disable=SC2164
- popd
- rm -rf "$tmpd"
- fi
-
-else
- echo "Not applicable"
-fi
-
-true "^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^"
diff --git a/rpminspect.yaml b/rpminspect.yaml
deleted file mode 100644
index f31bc02..0000000
--- a/rpminspect.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-inspections:
- # GCC subpackages are inter-dependent but without requesting an explicit
- # version - which rpmdeps dislikes and creates huge reports. We can't fix
- # it easily and it's not a practical problem anyway. Unfortunately we
- # can't tell rpmdeps to ignore just that particular warning. Switching off
- # the rpmdeps checks looks like a lesser evil.
- rpmdeps: off
-
-badfuncs:
- # GCC doesn't use the so called bad functions "much". If they appear then
- # - it is instrumenting them in sanitizers
- # - in languages that don't move further downstream.
- # We are OK with that.
- ignore:
- - /usr/lib*/libasan.so.*.*.*
- - /usr/lib*/libtsan.so.*.*.*
- - /usr/lib*/libgnat-*.so
- - /usr/lib*/libgphobos.so.*.*.*
- - /usr/lib*/libm2iso.so.*.*.*
- - /usr/lib*/libm2pim.so.*.*.*
-
-pathmigration:
- # Incomplete UsrMove, known but not planned at the moment
- ignore:
- - /lib*/libgcc_s-*.so.*
- - /lib*/libgcc_s.so.*
-
-debuginfo:
- # Skip the Go binaries, they ship unstripped
- ignore:
- - /usr/bin/go.gcc
- - /usr/bin/gofmt.gcc
- - /usr/lib*/libgo.so.*.*.*
- - /usr/libexec/gcc/*-redhat-linux/*/buildid
- - /usr/libexec/gcc/*-redhat-linux/*/cgo
- - /usr/libexec/gcc/*-redhat-linux/*/test2json
- - /usr/libexec/gcc/*-redhat-linux/*/vet
diff --git a/sources b/sources
index f1dba4c..44b6916 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,3 @@
-SHA512 (gcc-16.0.1-20260115.tar.xz) = 51ab079dedde5547caba601ce03954d4c5b2bf687538f106d3e851a8918162017fe65817d9e22fd115cf4d4f970bfba6a70a34db183141ce28c5c203a68eec0b
-SHA512 (isl-0.24.tar.bz2) = aab3bddbda96b801d0f56d2869f943157aad52a6f6e6a61745edd740234c635c38231af20bc3f1a08d416a5e973a90e18249078ed8e4ae2f1d5de57658738e95
-SHA512 (newlib-cygwin-d35cc82b5ec15bb8a5fe0fe11e183d1887992e99.tar.xz) = ef9495745a96d1d76f9f425c4a48c807fface36a1aa92351c5d024103678d144d046e8de55d195103784472c14874e29e4b9284d5d6a2e7bb27fd98c8455a881
-SHA512 (nvptx-tools-a0c1fff6534a4df9fb17937c3c4a4b1071212029.tar.xz) = 7f862986065028df70c843fc3f2c89e200a76b48ad0bd51c749ac8a5aab7be0ebdf35be182fad2407b3281615e75be1ac6833ab6a5130ae9920169a0412f94f0
+SHA512 (gcc-10.3.1-20210422.tar.xz) = e88b53be14b345d24cdd94d4b6fc52422c36400087594a47abbd062f6f8c681de6119a3cb93c142bea0c3b50a5c7bd43ff1e1cef661dd92390ecffdf98e4ea96
+SHA512 (newlib-cygwin-50e2a63b04bdd018484605fbb954fd1bd5147fa0.tar.xz) = 002a48a7b689a81abbf16161bcaec001a842e67dfbe372e9e109092703bfc666675f16198f60ca429370e8850d564547dc505df81bc3aaca4ce6defbc014ad6c
+SHA512 (nvptx-tools-5f6f343a302d620b0868edab376c00b15741e39e.tar.xz) = f6d10db94fa1570ae0f94df073fa3c73c8e5ee16d59070b53d94f7db0de8a031bc44d7f3f1852533da04b625ce758e022263855ed43cfc6867e0708d001e53c7
diff --git a/tests/build_hello_world.sh b/tests/build_hello_world.sh
new file mode 100755
index 0000000..f6aae70
--- /dev/null
+++ b/tests/build_hello_world.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -ex
+
+gcc -x c $(rpm --eval %build_cflags) data/hello.c -o hello_c.out
+./hello_c.out | grep -q "Hello World"
+
+g++ -x c++ $(rpm --eval %build_cxxflags) data/hello.cpp -o hello_cpp.out
+./hello_cpp.out | grep -q "Hello World"
diff --git a/tests/data/hello.c b/tests/data/hello.c
new file mode 100644
index 0000000..fe064a2
--- /dev/null
+++ b/tests/data/hello.c
@@ -0,0 +1,5 @@
+#include
+int main() {
+ printf("Hello World!\n");
+ return 0;
+}
diff --git a/tests/data/hello.cpp b/tests/data/hello.cpp
new file mode 100644
index 0000000..2131d8a
--- /dev/null
+++ b/tests/data/hello.cpp
@@ -0,0 +1,5 @@
+#include
+int main() {
+ std::cout << "Hello World!\n";
+ return 0;
+}
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..dfe09e0
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,14 @@
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+
+ required_packages:
+ - redhat-rpm-config
+ - annobin
+
+ tests:
+ - build_hello_world:
+ dir: .
+ run: "./build_hello_world.sh"
diff --git a/update-gcc.sh b/update-gcc.sh
index 47d7d70..427d89c 100755
--- a/update-gcc.sh
+++ b/update-gcc.sh
@@ -1,36 +1,7 @@
#!/bin/sh
-if [ "$#" -eq 0 ]; then
- echo "Usage: ./update-gcc.sh gcc/redhat/heads/gcc-NN-branch_commit_hash [git_reference_dir_to_speed_up]"
- exit 1
-fi
-export LC_ALL=C
-if ! [ -f gcc.spec ]; then echo Must be run in the directory with gcc.spec file.; exit 1; fi
-if [ -d gcc-dir.tmp ]; then echo gcc-dir.tmp already exists.; exit 1; fi
-v=`sed -n 's/^%global gcc_version //p' gcc.spec`
-p=`sed -n 's/^%global gitrev //p' gcc.spec`
-h=$1
-if [ "$#" -ge 2 ]; then
- git clone --dissociate --reference $2 https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
-else
- git clone https://gcc.gnu.org/git/gcc.git gcc-dir.tmp
-fi
-git --git-dir=gcc-dir.tmp/.git fetch origin $h
+[ -d gcc-dir.tmp ] && echo gcc-dir.tmp already exists && exit 1
+git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
+git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin $1
d=`date --iso | sed 's/-//g'`
-cd gcc-dir.tmp
-git diff $p..$h > P1
-git log --format=%B `git log --format='%ae %H' $p..$h | awk '/^gccadmin@gcc.gnu.org/{print $2;exit 0}'`..$h > P2
-diff -up /dev/null P2 >> P1
-sed -n 's,^+[[:blank:]]\+PR \([a-z0-9+-]\+/[0-9]\+\)$,\1,p' P1 | sed 's/ - .*$//;s/[: ;.]//g' | LC_ALL=C sort -u -t / -k 1,1 -k 2,2n > P3
-> P4
-for i in `cat P3`; do if grep -F $i ../gcc.spec >/dev/null; then echo $i already recorded.; else echo $i >> P4; fi; done
-case "$v" in
- *.0.*) echo "- update from trunk" > P5;;
- *) echo "- update from releases/gcc-`echo $v | sed 's/\..*$//'` branch" > P5;;
-esac
-echo `cat P4` | sed 's/ /, /g' | fold -w 71 -s | sed '1s/^/ - PRs /;2,$s/^/ /;s/, $/,/' >> P5
-echo >> P5
-cd ..
-sed -i -e '/^%global gitrev /s/ [0-9a-f]\+$/ '$h'/;/^%global DATE /s/ [0-9]\+$/ '$d'/;/^%changelog$/r gcc-dir.tmp/P5' gcc.spec
-git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-$v-$d/ $h | xz -9e > gcc-$v-$d.tar.xz
+git --git-dir=gcc-dir.tmp/.git archive --prefix=gcc-10.3.1-$d/ $1 | xz -9e > gcc-10.3.1-$d.tar.xz
rm -rf gcc-dir.tmp
-fedpkg new-sources gcc-$v-$d.tar.xz `sed 's/SHA512 (\(.*\)) = [0-9a-f]\+$/\1/' sources | grep -v '^gcc-'`