eclass/flag-o-matic: Sync with Gentoo

It's from Gentoo commit cc7061ee5e3bfd1a7a1bcbdc44f1bd1d69fda495.
This commit is contained in:
Flatcar Buildbot 2023-10-09 07:11:23 +00:00 committed by Krzesimir Nowak
parent 7b9027777f
commit 1839d45f45

View File

@ -61,6 +61,7 @@ _setup-allowed-flags() {
-mindirect-branch-register -mindirect-branch-register
'-mfunction-return=*' '-mfunction-return=*'
-mretpoline -mretpoline
'-mbranch-protection=*'
# Misc # Misc
-fno-unit-at-a-time -fno-strict-overflow -fno-unit-at-a-time -fno-strict-overflow
@ -95,6 +96,7 @@ _setup-allowed-flags() {
'-fno-stack-protector*' '-fabi-version=*' '-fno-stack-protector*' '-fabi-version=*'
-fno-strict-aliasing -fno-bounds-check -fno-bounds-checking -fstrict-overflow -fno-strict-aliasing -fno-bounds-check -fno-bounds-checking -fstrict-overflow
-fno-omit-frame-pointer '-fno-builtin*' -fno-omit-frame-pointer '-fno-builtin*'
-mno-omit-leaf-frame-pointer
) )
ALLOWED_FLAGS+=( ALLOWED_FLAGS+=(
'-mregparm=*' -mno-app-regs -mapp-regs -mno-mmx -mno-sse '-mregparm=*' -mno-app-regs -mapp-regs -mno-mmx -mno-sse
@ -132,6 +134,12 @@ _setup-allowed-flags() {
# binaries: bug #677852 # binaries: bug #677852
-mstackrealign -mstackrealign
) )
ALLOWED_FLAGS+=(
# Clang-only
'--unwindlib=*'
'--rtlib=*'
'--stdlib=*'
)
} }
# @FUNCTION: _filter-hardened # @FUNCTION: _filter-hardened