Bug 1947894

Summary: glibc: Inherit additional compiler flags
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Carlos O'Donell <codonell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: aoliva, arjun, codonell, dj, fweimer, law, mcermak, mfabian, pfrankli, rth, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1947895 (view as bug list) Environment:
Last Closed: 2021-04-13 12:48:53 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:    
Bug Blocks: 1947895    

Description Florian Weimer 2021-04-09 13:38:28 UTC
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:53 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-13 12:48:53 UTC
Fixed in rawhide via: https://src.fedoraproject.org/rpms/glibc/c/78c735d31e55b33de8ded299ead41a99e0b4966a
And 34: https://src.fedoraproject.org/rpms/glibc/c/8f1bd5d8a778711279d6cd405ecf64dab15105ae

These changes are no-ops for Fedora, so I didn't bump the Release number.