Michael Hennebry wrote:

>>>>> Oh, and BTW, on gentoo your optimization choices for gcc are -O, -O2
>>>>> or nothing, because all other -O options are replaced with -O2 by
>>>>> toolchain.eclass.
> 
> Perhaps I misunderstood the preceeding.
> I'd taken it to mean that recompiling any package with gentoo tools
> would result in -Os being replaced by  -O2 .

AFAI understood the preceeding Richard wrote:

"on gentoo your optimization choices for gcc are ... "

I interpret this as:

emerge gcc with CFLAGS containing -Os
get gcc compiled with -O2

Not "any package", gcc (due to toolchain.eclass ...).

My way of seeing this, corrections welcome.

>> Being the OP in this case, I want to state that I didn't want "-Os for
>> all pkgs". I just decided to set "-Os" inside my CFLAGS, and I am
>> perfectly happy with any working gcc resulting from this.
> 
> A statement quoted above suggested to me that
> you were unlikely to get -Os for anything.

Earlier in this thread I went -O3, then -O2, now -Os ...
As I stated several times, I learn.

Greets, Stefan.

-- 
gentoo-user@gentoo.org mailing list

Reply via email to