From f25f1b7627e84e0bd67bb3bb32e6467bc7036329 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 2 May 2018 11:55:12 +0200 Subject: [PATCH] Reflect -fasynchronous-unwind-tables GCC default on POWER (#1550914) --- buildflags.md | 9 +++------ redhat-rpm-config.spec | 5 ++++- rpmrc | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/buildflags.md b/buildflags.md index 7f85aca..b279bbb 100644 --- a/buildflags.md +++ b/buildflags.md @@ -259,15 +259,12 @@ not), but their selection depends on the architecture: handlers. It also makes performance and debugging tools more useful because unwind information is available without having to install (and load) debugging ienformation. - Asynchronous unwind tables are enabled for aarch64, i686, s390x, - and x86_64. They are not needed on armhfp, ppc64 and ppc64le due - to architectural differences in stack management. On these + Asynchronous unwind tables are enabled for aarch64, i686, ppc64, + ppc64le, s390x, and x86_64. They are not needed on armhfp due to + architectural differences in stack management. On these architectures, `-fexceptions` (see above) still enables regular unwind tables (or they are enabled by default even without this option). -* `-funwind-tables`: A subset of the unwind information restricted - to actual call sites. Used on ppc64, ppc64le. Also implied by - `-fexceptions`. In addition, `redhat-rpm-config` re-selects the built-in default tuning in the `gcc` package. These settings are: diff --git a/redhat-rpm-config.spec b/redhat-rpm-config.spec index f327d60..5ddcae1 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: 109 +Version: 110 Release: 1%{?dist} # No version specified. License: GPL+ @@ -184,6 +184,9 @@ install -p -m 755 -t %{buildroot}%{_rpmconfigdir} kmod.prov %{_rpmconfigdir}/macros.d/macros.kmp %changelog +* Wed May 2 2018 Florian Weimer - 110-1 +- Reflect -fasynchronous-unwind-tables GCC default on POWER (#1550914) + * Wed May 2 2018 Florian Weimer - 109-1 - Use plain -fcf-protection compiler flag, without -mcet (#1570823) diff --git a/rpmrc b/rpmrc index dc8fa85..015004a 100644 --- a/rpmrc +++ b/rpmrc @@ -24,12 +24,12 @@ optflags: sparc64v %{__global_compiler_flags} -m64 -mcpu=niagara optflags: m68k %{__global_compiler_flags} -optflags: ppc %{__global_compiler_flags} -m32 -funwind-tables +optflags: ppc %{__global_compiler_flags} -m32 -fasynchronous-unwind-tables optflags: ppciseries %{__global_compiler_flags} -m32 optflags: ppcpseries %{__global_compiler_flags} -m32 -optflags: ppc64 %{__global_compiler_flags} -m64 -funwind-tables -fstack-clash-protection -optflags: ppc64p7 %{__global_compiler_flags} -m64 -O3 -mcpu=power7 -mtune=power7 -funwind-tables -fstack-clash-protection -optflags: ppc64le %{__global_compiler_flags} -m64 -mcpu=power8 -mtune=power8 -funwind-tables -fstack-clash-protection +optflags: ppc64 %{__global_compiler_flags} -m64 -fasynchronous-unwind-tables -fstack-clash-protection +optflags: ppc64p7 %{__global_compiler_flags} -m64 -O3 -mcpu=power7 -mtune=power7 -fasynchronous-unwind-tables -fstack-clash-protection +optflags: ppc64le %{__global_compiler_flags} -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection optflags: ppc64iseries %{__global_compiler_flags} -m64 optflags: ppc64pseries %{__global_compiler_flags} -m64 optflags: ppc8260 %{__global_compiler_flags} -m32