public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: Paolo Bonzini <bonzini@gnu.org>
Cc: gcc-patches@gcc.gnu.org
Subject: Re: PING: PATCH: PR bootstrap/45954: LTO isn't enabled in stage1 cc1 with --with-build-config=bootstrap-lto
Date: Wed, 20 Oct 2010 14:20:00 -0000	[thread overview]
Message-ID: <AANLkTimToMDXXRWEy6bsB7GOY432fbGee1x_epsS1uBV@mail.gmail.com> (raw)
In-Reply-To: <4CBE8B78.8010003@gnu.org>

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

  reply	other threads:[~2010-10-20 12:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-20  3:17 H.J. Lu
2010-10-20  8:51 ` Paolo Bonzini
2010-10-20 14:20   ` H.J. Lu [this message]
2010-10-20 14:40     ` Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTimToMDXXRWEy6bsB7GOY432fbGee1x_epsS1uBV@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=bonzini@gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).