This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING: PATCH: PR bootstrap/45954: LTO isn't enabled in stage1 cc1 with --with-build-config=bootstrap-lto


On Tue, Oct 19, 2010 at 11:26 PM, Paolo Bonzini <bonzini@gnu.org> wrote:
> On 10/20/2010 01:52 AM, H.J. Lu wrote:
>>
>> On Sun, Oct 17, 2010 at 3:07 PM, H.J. Lu<hongjiu.lu@intel.com> ?wrote:
>>>
>>> Hi,
>>>
>>> This patch enables lto for stage1 if LTO is enabled. OK for trunk?
>
> Maybe
>
> boot_language=$enable_lto
>
> in gcc/config/lto/config-lang.in is enough?
>

It works.  OK for trunk?

Thanks.


-- 
H.J.
---
2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/45954
	* config-lang.in (boot_language): Set to $enable_lto.

diff --git a/gcc/lto/config-lang.in b/gcc/lto/config-lang.in
index aa84db1..72ed2dd 100644
--- a/gcc/lto/config-lang.in
+++ b/gcc/lto/config-lang.in
@@ -30,3 +30,6 @@ gtfiles="\$(srcdir)/lto/lto-tree.h
\$(srcdir)/lto/lto-lang.c \$(srcdir)/lto/lto.
 # enabling this "language". To enable LTO functionality, use
 # --enable-lto when configuring the compiler.
 build_by_default=no
+
+# Add LTO to boot language if it is enabled.
+boot_language=$enable_lto


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]