From 6e5a75d61e4391af30f757ef89129073dced7754 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Jan 25 2018 15:22:54 +0000 Subject: Build flags: Switch to generic tuning on i686 (#1538693) This matches what the gcc package already does by default. --- diff --git a/buildflags.md b/buildflags.md index e9f700e..83ccc38 100644 --- a/buildflags.md +++ b/buildflags.md @@ -231,7 +231,10 @@ tuning in the `gcc` package. These settings are: with other ARMv7-A implementations). `-mabi=aapcs-linux` switches to the AAPCS ABI for GNU/Linux. * **i686**: `-march=i686` is used to select a minmum support CPU level - of i686 (corresponding to the Pentium Pro). + of i686 (corresponding to the Pentium Pro). `-mtune=generic` activates + tuning for a current blend of CPUs (under the assumption that most + users of i686 packages obtain them through an x86_64 installation + on current hardware). * **ppc64le**: `-mcpu=power8 -mtune=power8` selects a minimum supported CPU level of POWER8 (the first CPU with ppc64le support) and tunes for POWER8. diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index fabad18..4e52916 100644 --- a/redhat-rpm-config.spec +++ b/redhat-rpm-config.spec @@ -6,7 +6,7 @@ Summary: Red Hat specific rpm configuration files Name: redhat-rpm-config -Version: 84 +Version: 85 Release: 1%{?dist} # No version specified. License: GPL+ @@ -157,6 +157,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Thu Jan 25 2018 Florian Weimer - 85-1 +- Build flags: Switch to generic tuning on i686 (#1538693) + * Mon Jan 22 2018 Florian Weimer - 84-1 - Link with -z defs by default (#1535422) diff --git a/rpmrc b/rpmrc index f765c52..8928689 100644 --- a/rpmrc +++ b/rpmrc @@ -3,7 +3,7 @@ include: /usr/lib/rpm/rpmrc optflags: i386 %{__global_compiler_flags} -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: i486 %{__global_compiler_flags} -m32 -march=i486 -fasynchronous-unwind-tables -fstack-clash-protection optflags: i586 %{__global_compiler_flags} -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -optflags: i686 %{__global_compiler_flags} -m32 -march=i686 -fasynchronous-unwind-tables -fstack-clash-protection +optflags: i686 %{__global_compiler_flags} -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection optflags: athlon %{__global_compiler_flags} -m32 -march=athlon -fasynchronous-unwind-tables -fstack-clash-protection optflags: ia64 %{__global_compiler_flags} optflags: x86_64 %{__global_compiler_flags} -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection