Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 916573

Summary: flag-o-matic.eclass: Consider allowing ordinary alignment flags (-f{,no-}align-{functions,jumps,loops}) in strip-flags
Product: Gentoo Linux Reporter: setun.90
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: enhancement CC: kocelfc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output

Description setun.90 2023-10-31 09:47:23 UTC
As the summary says.

Reproducible: Always

Steps to Reproduce:
1. Include any of -f{,no-}align-{functions,jumps,loops} in {C{,XX},F{,C}}FLAGS
2. Emerge any package with extensive flag filtering (e.g. sys-devel/gcc, sys-libs/glibc, sys-devel/binutils, etc.)
3. cat /var/db/pkg/${package_in_question}/{C{,XX},F{,C}}FLAGS
Actual Results:  
Alignment flags are filtered.

Expected Results:  
Alignment flags are present.
Comment 1 setun.90 2023-10-31 09:49:52 UTC
Created attachment 873766 [details]
emerge --info output
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-31 09:50:23 UTC
As discussed on IRC but ftr, I'm fine with this in principle, but I'm going to check gcc's bugzilla & also ask them on irc if there's any issues from the past they're aware of.
Comment 3 Kostadin Shishmanov 2023-12-13 18:06:41 UTC
Could "-malign-data" also possibly be added to the allowed flags?