commit:     20b6ad4b80f78a26d20696c8437c1dfd753a61d2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 14 05:34:10 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 05:34:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20b6ad4b

flag-o-matic.eclass: allow -mtls-dialect=* through filter

Most arches have this set anyway but amd64 is likely to switch to gnu2 finally
as well [0] so let's allow testing with it (and reverting to the old default
once it changes) by allowing -mtls-dialect=* through the filter.

[0] https://inbox.sourceware.org/gcc/871qbqp4of.fsf <AT> 
oldenburg.str.redhat.com/

Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/flag-o-matic.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 40662f4f7d7b..0e427649c015 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -115,6 +115,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

Reply via email to