Enable LTO profiledbootstrap on all arches

Resolves: #1986141
This commit is contained in:
Marek Polacek 2021-07-30 09:55:53 -04:00
parent a11ea9e92c
commit 0672596344
1 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,6 @@
%global nvptx_tools_gitrev 5f6f343a302d620b0868edab376c00b15741e39e
%global newlib_cygwin_gitrev 50e2a63b04bdd018484605fbb954fd1bd5147fa0
%global _unpackaged_files_terminate_build 0
%global _performance_build 1
# Hardening slows the compiler way too much.
%undefine _hardened_build
%if 0%{?fedora} > 27 || 0%{?rhel} > 7
@ -119,7 +118,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
Release: %{gcc_release}%{?dist}
Release: %{gcc_release}.1%{?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
@ -1077,9 +1076,7 @@ CONFIGURE_OPTS="\
--build=%{gcc_target_platform} \
%endif
%if 0%{?fedora} >= 35 || 0%{?rhel} >= 9
%ifarch x86_64 %{ix86} ppc64le s390x
--with-build-config=bootstrap-lto --enable-link-serialization=1 \
%endif
%endif
"
@ -3133,7 +3130,10 @@ end
%endif
%changelog
* Thu Jul 29 2021 Florian Weimer <fweimer@redhat.com> - 11.2.1-2
* Fri Jul 30 2021 Marek Polacek <polacek@redhat.com> 11.2.1-2.1
- enable LTO profiledbootstrap on all arches (#1986141)
* Thu Jul 29 2021 Florian Weimer <fweimer@redhat.com> 11.2.1-2
- Rebuild with changed aarch64 build flags (#1984652)
* Wed Jul 28 2021 Marek Polacek <polacek@redhat.com> 11.2.1-1