From: Paul M. <le...@li...> - 2007-09-11 04:03:33
|
On Tue, Sep 11, 2007 at 12:42:10PM +0900, Yuichi Nakamura wrote: > On Mon, 10 Sep 2007 18:35:28 +0900 > Paul Mundt wrote: > > On the other hand, with newer > > compilers we really should be using -Os as the default anyways (this is > > also the default for most ARM boards), it hasn't been a problem for some > > time. > Does it mean, "most people are using -Os now" ? > Correct. Quite a few of the SH boards already use this as their default: pmundt@dysnomia ~/devel/git/sh-2.6.24 $ grep CC_OPTIMIZE_FOR_SIZE arch/sh/configs -r | wc -l 27 pmundt@dysnomia ~/devel/git/sh-2.6.24 $ grep CC_OPTIMIZE_FOR_SIZE=y arch/sh/configs -r | wc -l 15 And almost all of the up-to-date ports are using it: pmundt@dysnomia ~/devel/git/sh-2.6.24 $ grep 'version: 2.6.2[12]' arch/sh/configs -r | sed -e 's/:.*$//' | wc -l 12 pmundt@dysnomia ~/devel/git/sh-2.6.24 $ grep CC_OPTIMIZE_FOR_SIZE=y $(grep 'version: 2.6.2[12]' arch/sh/configs -r | sed -e 's/:.*$//') | wc -l 9 RTS7751R2D is one of the ones that is not using it, so it's probably worth just enabling it there and for all of the other boards, too. We at least don't have any regressions with it any more with recent compilers. |