<div dir="auto">What's the problem with enabling LTO support in the tools by default?<div dir="auto"><br></div><div dir="auto">Using it is a different matter.</div><div dir="auto"><br></div><div dir="auto">--joel</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 15, 2022, 7:20 AM <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>><br>
<br>
---<br>
source-builder/config/binutils-2-1.cfg | 6 +-----<br>
source-builder/config/gcc-common-1.cfg | 10 +++-------<br>
2 files changed, 4 insertions(+), 12 deletions(-)<br>
<br>
diff --git a/source-builder/config/binutils-2-1.cfg b/source-builder/config/binutils-2-1.cfg<br>
index a49fa2a..6de33ae 100644<br>
--- a/source-builder/config/binutils-2-1.cfg<br>
+++ b/source-builder/config/binutils-2-1.cfg<br>
@@ -26,14 +26,11 @@ URL: <a href="http://sources.redhat.com/binutils" rel="noreferrer noreferrer" target="_blank">http://sources.redhat.com/binutils</a><br>
%define allow_cxc<br>
<br>
#<br>
-# Default gold and LTO to disable.<br>
+# Default gold to disable.<br>
#<br>
%ifn %{defined with_gold}<br>
%define with_gold 0<br>
%endif<br>
-%ifn %{defined with_lto}<br>
- %define with_lto 0<br>
-%endif<br>
<br>
#<br>
# Source<br>
@@ -72,7 +69,6 @@ URL: <a href="http://sources.redhat.com/binutils" rel="noreferrer noreferrer" target="_blank">http://sources.redhat.com/binutils</a><br>
%{?with_deterministic_archives:--enable-deterministic-archives} \<br>
%{?with_64_bit_bfd:--enable-64-bit-bfd} \<br>
%{?with_gold:--enable-gold=yes} \<br>
- %{?with_lto:--enable-lto --enable-plugins}%{!?with_lto:--disable-lto} \<br>
--without-included-gettext \<br>
--disable-win32-registry \<br>
--disable-werror \<br>
diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg<br>
index 05e0e3c..694a1f3 100644<br>
--- a/source-builder/config/gcc-common-1.cfg<br>
+++ b/source-builder/config/gcc-common-1.cfg<br>
@@ -34,7 +34,7 @@ URL: <a href="http://gcc.gnu.org/" rel="noreferrer noreferrer" target="_blank">http://gcc.gnu.org/</a><br>
# Default LTO to off.<br>
#<br>
%ifn %{defined with_lto}<br>
- %define with_lto 0<br>
+ %define enable_lto 1<br>
%endif<br>
<br>
#<br>
@@ -165,11 +165,8 @@ URL: <a href="http://gcc.gnu.org/" rel="noreferrer noreferrer" target="_blank">http://gcc.gnu.org/</a><br>
%if %{enable_fortran}<br>
languages="$languages,fortran"<br>
%endif<br>
-%if %{enable_java}<br>
- languages="$languages,java"<br>
-%endif<br>
-%if %{enable_objc}<br>
- languages="$languages,objc"<br>
+%if %{enable_lto}<br>
+ languages="$languages,lto"<br>
%endif<br>
<br>
%{host_build_flags}<br>
@@ -193,7 +190,6 @@ URL: <a href="http://gcc.gnu.org/" rel="noreferrer noreferrer" target="_blank">http://gcc.gnu.org/</a><br>
--disable-win32-registry \<br>
--disable-werror \<br>
--enable-version-specific-runtime-libs \<br>
- %{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \<br>
--enable-newlib-io-c99-formats \<br>
%{?disable_MAKEINFO:MAKEINFO=missing} \<br>
%{?with_iconv:--enable-newlib-iconv} \<br>
-- <br>
2.24.1<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>