Bug 1947895 - glibc: Inherit additional compiler flags
Summary: glibc: Inherit additional compiler flags
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: glibc
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Florian Weimer
QA Contact: Sergey Kolosov
URL:
Whiteboard:
Depends On: 1947894
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-09 13:39 UTC by Florian Weimer
Modified: 2023-07-18 14:29 UTC (History)
14 users (show)

Fixed In Version: glibc-2.33-8.el9
Doc Type: No Doc Update
Doc Text:
Clone Of: 1947894
Environment:
Last Closed: 2021-12-07 21:42:00 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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