From: Richard Guenther <richard.guenther@gmail.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: gcc-patches@gcc.gnu.org, Andi Kleen <ak@linux.intel.com>,
"Joseph S. Myers" <joseph@codesourcery.com>
Subject: Re: [PATCH 1/2] Fix -fno-lto (PR lto/46905)
Date: Thu, 16 Dec 2010 13:45:00 -0000 [thread overview]
Message-ID: <AANLkTin7DHzGrbTR-MCf62rcOXw+Wm=k60NN4t1HYF_j@mail.gmail.com> (raw)
In-Reply-To: <87pqt1hn1e.fsf@basil.nowhere.org>
On Thu, Dec 16, 2010 at 2:20 PM, Andi Kleen <andi@firstfloor.org> wrote:
> Richard Guenther <richard.guenther@gmail.com> writes:
>
>> On Thu, Dec 16, 2010 at 1:41 PM, Andi Kleen <andi@firstfloor.org> wrote:
>>> From: Andi Kleen <ak@linux.intel.com>
>>>
>>> This fixes PR lto/46905.
>>>
>>> It's sometimes convenient in large Makefiles to globally enable LTO
>>> in CFLAGS, but disable it again for specific files. The simplest
>>> way to do that is appending -fno-lto, but that didn't work.
>>> Add explicit code to handle this case.
>>>
>>> Passes bootstrap and full test on x86_64-linux. Ok?
>>
>> Do you really need the common.opt and opts.c hunks?
>
> Yes. The previous state without them didn't work.
>
> I also tried to do it without opts.c, but setting an 0 initialization
> value for the -fno-lto entry, but that didn't work either.
Huh, that's strange. Joseph, do you have any idea why? Is it because
of how flags get passed to collect2?
Richard.
> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only.
>
next prev parent reply other threads:[~2010-12-16 13:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-16 13:25 Andi Kleen
2010-12-16 13:26 ` [PATCH 2/2] Improve reporting of section conflict errors Andi Kleen
2010-12-16 13:32 ` Richard Guenther
2010-12-16 15:39 ` Andi Kleen
2010-12-16 15:46 ` Richard Guenther
2010-12-16 15:53 ` Andi Kleen
2010-12-16 16:56 ` Joseph S. Myers
2010-12-16 17:24 ` Andi Kleen
2010-12-16 20:37 ` H.J. Lu
2010-12-16 14:01 ` Nathan Froyd
2010-12-16 13:29 ` [PATCH 1/2] Fix -fno-lto (PR lto/46905) Richard Guenther
2010-12-16 13:30 ` Andi Kleen
2010-12-16 13:45 ` Richard Guenther [this message]
2010-12-16 16:09 ` Jan Hubicka
2010-12-16 16:44 ` Joseph S. Myers
2010-12-16 18:14 ` Andi Kleen
2010-12-18 20:44 ` Richard Guenther
2010-12-20 5:05 ` Andi Kleen
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='AANLkTin7DHzGrbTR-MCf62rcOXw+Wm=k60NN4t1HYF_j@mail.gmail.com' \
--to=richard.guenther@gmail.com \
--cc=ak@linux.intel.com \
--cc=andi@firstfloor.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=joseph@codesourcery.com \
/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).