From 75a53b7ea3e91a5cfcb3801bd650327e6c59a283 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 22 Jan 2018 15:41:54 +0100 Subject: [PATCH] Make armhfp flags consistent with GCC defaults --- buildflags.md | 5 ++++- redhat-rpm-config.spec | 5 ++++- rpmrc | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/buildflags.md b/buildflags.md index b87c924..36a6e75 100644 --- a/buildflags.md +++ b/buildflags.md @@ -183,7 +183,10 @@ tuning in the `gcc` package. These settings are: * **armhfp**: `-march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard` selects an Arm subarchitecture based on the ARMv7-A architecture - with 16 64-bit floating point registers. + with 16 64-bit floating point registers. `-mtune=cortex-8a` selects + tuning for the Cortex-A8 implementation (while preserving compatibility + 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). * **ppc64le**: `-mcpu=power8 -mtune=power8` selects a minimum supported diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index d1db018..5991245 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: 82 +Version: 83 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 +* Mon Jan 22 2018 Florian Weimer - 83-1 +- Make armhfp flags consistent with GCC defaults + * Mon Jan 22 2018 Florian Weimer - 82-1 - Make use of -fasynchronous-unwind-tables more explicit (#1536431) diff --git a/rpmrc b/rpmrc index 432b653..f765c52 100644 --- a/rpmrc +++ b/rpmrc @@ -60,7 +60,7 @@ optflags: armv6l %{__global_compiler_flags} -march=armv6 -mfloat-abi=soft optflags: armv6hl %{__global_compiler_flags} -march=armv6 -mfpu=vfp -mfloat-abi=hard optflags: armv6hnl %{__global_compiler_flags} -march=armv6 -mfpu=neon -mfloat-abi=hard optflags: armv7l %{__global_compiler_flags} -march=armv7-a -mfloat-abi=soft -optflags: armv7hl %{__global_compiler_flags} -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard +optflags: armv7hl %{__global_compiler_flags} -march=armv7-a -mfpu=vfpv3-d16 -mtune=cortex-a8 -mabi=aapcs-linux -mfloat-abi=hard optflags: armv7hnl %{__global_compiler_flags} -march=armv7-a -mfpu=neon -mfloat-abi=hard optflags: atarist %{__global_compiler_flags}