toolchain.eclass: filter -mtls-dialect=gnu2 for < GCC 10

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-21 10:42:23 +00:00
parent f26b21f78c
commit e716d94001
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -2336,6 +2336,9 @@ gcc_do_make() {
STAGE1_CFLAGS="-O0" STAGE1_CFLAGS="-O0"
STAGE1_CXXFLAGS="-O0" STAGE1_CXXFLAGS="-O0"
STAGE1_GDCFLAGS="-O0" STAGE1_GDCFLAGS="-O0"
# ICEs w/ checking with < GCC 10
filter-flags -mtls-dialect=gnu2
# We have a very good host compiler but it may be a bit too good, and # We have a very good host compiler but it may be a bit too good, and
# know about flags that the version we are compiling does not know # know about flags that the version we are compiling does not know
# about. In principle we could check e.g. which gnat1 we are using as # about. In principle we could check e.g. which gnat1 we are using as