Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>,
	 Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: Re: why do we poison -Os?
Date: Tue, 23 Aug 2011 23:02:37 -0500	[thread overview]
Message-ID: <7D14B031-9782-4012-B31C-A46BE077672F@kernel.crashing.org> (raw)
In-Reply-To: <1314150303.5939.70.camel@rex>


On Aug 23, 2011, at 8:45 PM, Richard Purdie wrote:

> On Tue, 2011-08-23 at 20:32 -0500, Kumar Gala wrote:
>> If tinylogin is the only issue why modify/patch gcc?  I see we have
>> meta/recipes-core/tinylogin/tinylogin-1.4/use_O2_option.patch to deal
>> with this?
>> 
>> Not allowing -Os at all, which is our current situation on PPC is
>> problematic.  So trying to see if this issue is really limited to gcc
>> 4.5 or not.  How can I reproduce it with current poky.git?
> 
> We were seeing problems when makefiles were putting -Os into compiler
> flags without our knowledge. In some cases -Os was silently corrupting
> binaries. We therefore ended up adding the poison so if anything was
> using the option we knew to generate buggy code, we'd know about it.

So, I'm trying to figure out if it was just tinylogin or more that had issues.

> If we know gcc to be safe using that option we can drop the patch and
> users can enable it where it makes sense to them. I still don't like
> makefiles changing compiler optimisations from under us though. Last I
> heard, -Os was still very badly supported and not recommended by the gcc
> community.

That's a different issue altogether.  I think its bad that we dont allow -Os at all which is what I'm trying address and the fact that its pretty necessary to build u-boot because it has size limitations.

- k


  reply	other threads:[~2011-08-24  4:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24  0:52 why do we poison -Os? Kumar Gala
2011-08-24  1:16 ` Xu, Dongxiao
2011-08-24  1:31   ` Kumar Gala
2011-08-24  1:32   ` Kumar Gala
2011-08-24  1:45     ` Richard Purdie
2011-08-24  4:02       ` Kumar Gala [this message]
2011-08-24  1:47     ` Xu, Dongxiao
2011-08-24  4:06       ` Kumar Gala
2011-08-24 10:52       ` Phil Blundell
2011-08-24 16:14         ` Khem Raj

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=7D14B031-9782-4012-B31C-A46BE077672F@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.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