diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 37494 -> 37489 bytes | |||
-rw-r--r-- | eclass/ada.eclass | 13 | ||||
-rw-r--r-- | eclass/toolchain.eclass | 20 |
3 files changed, 13 insertions, 20 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex c5896ceec3d8..d79dccdf3777 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz diff --git a/eclass/ada.eclass b/eclass/ada.eclass index eea41c0cff48..198cd01477aa 100644 --- a/eclass/ada.eclass +++ b/eclass/ada.eclass @@ -57,7 +57,7 @@ _ADA_ECLASS=1 # @DESCRIPTION: # All supported Ada implementations, most preferred last. _ADA_ALL_IMPLS=( - gnat_2021 gcc_12_2_0 gcc_12 + gnat_2021 gcc_12 ) readonly _ADA_ALL_IMPLS @@ -122,9 +122,6 @@ _ada_impl_supported() { gnat_2021) return 0 ;; - gcc_12_2_0) - return 0 - ;; gcc_12) return 0 ;; @@ -223,10 +220,6 @@ ada_export() { impl=${1} shift ;; - gcc_12_2_0) - impl=${1} - shift - ;; gcc_12) impl=${1} shift @@ -247,10 +240,6 @@ ada_export() { gcc_pv=10 slot=10 ;; - gcc_12_2_0) - gcc_pv=12.2.0 - slot=12 - ;; gcc_12) gcc_pv=12 slot=12 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 2d7801259019..8ffdd9e26f1e 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1090,6 +1090,14 @@ toolchain_src_configure() { confgcc+=( --enable-libstdcxx-time ) fi + # This only controls whether the compiler *supports* LTO, not whether + # it's *built using* LTO. Hence we do it without a USE flag. + if tc_version_is_at_least 4.6 ; then + confgcc+=( --enable-lto ) + elif tc_version_is_at_least 4.5 ; then + confgcc+=( --disable-lto ) + fi + # Build compiler itself using LTO if tc_version_is_at_least 9.1 && _tc_use_if_iuse lto ; then build_config_targets+=( bootstrap-lto ) @@ -1164,6 +1172,10 @@ toolchain_src_configure() { avr) confgcc+=( --enable-shared --disable-threads ) ;; + nvptx*) + # "LTO is not supported for this target" + confgcc+=( --disable-lto ) + ;; esac if [[ -n ${needed_libc} ]] ; then @@ -1485,14 +1497,6 @@ toolchain_src_configure() { confgcc+=( $(use_with zstd) ) fi - # This only controls whether the compiler *supports* LTO, not whether - # it's *built using* LTO. Hence we do it without a USE flag. - if tc_version_is_at_least 4.6 ; then - confgcc+=( --enable-lto ) - elif tc_version_is_at_least 4.5 ; then - confgcc+=( --disable-lto ) - fi - # graphite was added in 4.4 but we only support it in 6.5+ due to external # library issues. bug #448024, bug #701270 if tc_version_is_at_least 6.5 && in_iuse graphite ; then |