From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: why do we poison -Os?
Date: Tue, 23 Aug 2011 18:45:03 -0700 [thread overview]
Message-ID: <1314150303.5939.70.camel@rex> (raw)
In-Reply-To: <0597F428-97F2-461F-804B-FE793E911BD4@kernel.crashing.org>
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.
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.
Cheers,
Richard
next prev parent reply other threads:[~2011-08-24 1:50 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 [this message]
2011-08-24 4:02 ` Kumar Gala
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=1314150303.5939.70.camel@rex \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.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