[poky] [PATCH 05/25] u-boot: disable -Os option not supported by gcc
Wolfgang Denk
wd at denx.de
Sat Jan 22 06:48:31 PST 2011
Dear Richard,
In message <1295565854.14388.27977.camel at rex> you wrote:
>
> > What exactly is the reason that -Os is not supported?
>
> Its not so much not supported, its that gcc 4.5 seems to have totally
> broken it and for better or worse, we're on that gcc version. Until we
> have a toolchain where the option works what do we do?
Usually I try to approach problems at the root cause - the best
solution was if we had patches for GCC to make it work. It appears
that "-Os" is only one way to trigger issues in recent GCC version;
plain "-O" or "-O1" trigger other problems, see for example
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45052
> Well, its a case of "totally broken" or a risk of size issues on some
> systems so I'm in favour of the latter. I agree the toolchain issues
> need to be resolved and I'm sure they will sooner or later. I have
> noticed upstream gcc don't seem to like the -Os option though and it
> often seems to be the source of problems...
Probably this is (at least partially) due to the fact that only such
lunatic fringe groups as the embedded folks tend to use exotic
features like -Os, and our word is of little interest to the GCC
PTBs. Did anybody from the Yocto project / Poky / the LF / Intel or
any other bigger player try to put his weight in?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is impractical for the standard to attempt to constrain the
behavior of code that does not obey the constraints of the standard.
- Doug Gwyn
More information about the poky
mailing list