Bug 1947895

Summary: glibc: Inherit additional compiler flags
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED CURRENTRELEASE QA Contact: Sergey Kolosov <skolosov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: aoliva, arjun.is, ashankar, codonell, dj, extras-qa, fweimer, law, mcermak, mfabian, mnewsome, pfrankli, rth, sipoyare
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.33-8.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1947894 Environment:
Last Closed: 2021-12-07 21:42:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1947894    
Bug Blocks:    

Description Florian Weimer 2021-04-09 13:39:08 UTC
+++ This bug was initially created as a clone of Bug #1947894 +++

We need to inherit -mcpu=power9, -mtune=power9 at least. This does not change baseline, it just enables control via redhat-rpm-config.

Comment 1 Florian Weimer 2021-04-09 13:45:26 UTC
Minimal patch:

diff --git a/glibc.spec b/glibc.spec
index 40b605f..5ee1887 100644
--- a/glibc.spec
+++ b/glibc.spec
@@ -1095,10 +1095,14 @@ rpm_inherit_flags \
        "-march=z15" \
        "-march=zEC12" \
        "-mbranch-protection=standard" \
+       "-mcpu=power8" \
+       "-mcpu=power9" \
        "-mfpmath=sse" \
        "-msse2" \
        "-mstackrealign" \
        "-mtune=generic" \
+       "-mtune=power8" \
+       "-mtune=power9" \
        "-mtune=z13" \
        "-mtune=z14" \
        "-mtune=z15" \

Comment 2 Florian Weimer 2021-04-09 15:21:45 UTC
Merge request: https://gitlab.com/redhat/centos-stream/rpms/glibc/-/merge_requests/5

Comment 5 Sergey Kolosov 2021-05-03 07:59:21 UTC
No regressions have been found.