eclass/flag-o-matic: Sync with Gentoo

It's from Gentoo commit cf366abd1bd50a33755734bbfb8c0e8a49a5480e.
This commit is contained in:
Flatcar Buildbot 2023-11-27 07:12:10 +00:00 committed by Krzesimir Nowak
parent 5beec2121a
commit f65a2aa96a

View File

@ -89,7 +89,7 @@ _setup-allowed-flags() {
'-fdiagnostics*' '-fplugin*'
'-W*' -w
# CPPFLAGS and LDFLAGS
# CPPFLAGS and LDFLAGS (TODO: Allow -Wa,*?)
'-[DUILR]*' '-Wl,*'
# Linker choice flag
@ -114,8 +114,15 @@ _setup-allowed-flags() {
-mno-faster-structs -mfaster-structs -m32 -m64 -mx32 '-mabi=*'
-mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 '-mcmodel=*'
-mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' '-mfloat-abi=*'
-mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
-mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000
# MIPS errata
-mfix-24k -mno-fix-24k -mfix-r4000 -mno-fix-r4000
-mfix-r4400 -mno-fix-r4400 -mfix-r5900 -mno-fix-r5900
-mfix-rm7000 -mno-fix-rm7000 -mfix-r9500 -mno-fix-r9500
-mfix-r10000 -mno-fix-r10000 -mfix-vr4120 -mno-fix-vr4120
-mfix-vr4130 -mfix-sb1 -mno-fix-sb1
'-Wa,-mfix-loongson2f-nop'
'-mr10k-cache-barrier=*' -mthumb -marm
# needed for arm64 (and in particular SCS)