eclass/flag-o-matic: Sync with Gentoo

It's from Gentoo commit fb34618c547e61049007838d3ea7fa46055b0027.
This commit is contained in:
Flatcar Buildbot 2024-01-01 07:12:50 +00:00 committed by Krzesimir Nowak
parent 5ec97a6227
commit 047d924e09

View File

@ -20,7 +20,7 @@ _FLAG_O_MATIC_ECLASS=1
inherit toolchain-funcs
[[ ${EAPI} == 6 ]] && inherit eutils
[[ ${EAPI} == 6 ]] && inherit eqawarn
# @FUNCTION: all-flag-vars
# @DESCRIPTION:
@ -81,6 +81,7 @@ _setup-allowed-flags() {
-gstabs -gstabs+
-gz
-glldb
'-fdebug-default-version=*'
# Cosmetic/output related, see e.g. bug #830534
-fno-diagnostics-color '-fmessage-length=*'
@ -115,6 +116,10 @@ _setup-allowed-flags() {
-mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 '-mcmodel=*'
-mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' '-mfloat-abi=*'
# This is default on for a bunch of arches except amd64 in GCC
# already, and amd64 itself is planned too.
'-mtls-dialect=*'
# MIPS errata
-mfix-24k -mno-fix-24k -mfix-r4000 -mno-fix-r4000
-mfix-r4400 -mno-fix-r4400 -mfix-r5900 -mno-fix-r5900