Bug 1947894 - glibc: Inherit additional compiler flags
Summary: glibc: Inherit additional compiler flags
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1947895
TreeView+ depends on / blocked
 
Reported: 2021-04-09 13:38 UTC by Florian Weimer
Modified: 2021-04-13 12:48 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
: 1947895 (view as bug list)
Environment:
Last Closed: 2021-04-13 12:48:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.