mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
eclass/toolchain: Sync with Gentoo
It's from Gentoo commit b7bc44f3b35169406f0c54f86fd45c8f5d02deeb.
This commit is contained in:
parent
7f981d87cf
commit
cfc4807b6e
@ -1378,7 +1378,10 @@ toolchain_src_configure() {
|
||||
--disable-systemtap
|
||||
--enable-host-shared
|
||||
--enable-languages=jit
|
||||
--without-isl
|
||||
# Might be used for the just-built GCC. Easier to just
|
||||
# respect USE=graphite here in case the user passes some
|
||||
# graphite flags rather than try strip them out.
|
||||
$(use_with graphite isl)
|
||||
--without-zstd
|
||||
--with-system-zlib
|
||||
)
|
||||
@ -1542,6 +1545,9 @@ gcc_do_filter_flags() {
|
||||
-fharden-control-flow-redundancy -fno-harden-control-flow-redundancy \
|
||||
-fhardcfr-skip-leaf -fhardcfr-check-exceptions \
|
||||
-fhardcfr-check-returning-calls '-fhardcfr-check-noreturn-calls=*'
|
||||
|
||||
# New in GCC 14.
|
||||
filter-flags -Walloc-size
|
||||
else
|
||||
# Makes things painfully slow and no real benefit for the compiler.
|
||||
append-flags $(test-flags-CC -fno-harden-control-flow-redundancy)
|
||||
|
Loading…
x
Reference in New Issue
Block a user