Re: CPUTYPE and gcc optimizations

2007-02-11 Thread Simon 'corecode' Schubert
Petr Janda wrote: I'm wondering if its good o set CPUTYPE for extra optimization, or if its ok to set any other extra compiler optimizations other than the default. don't set -march/-mtune + -O2/-Os with gcc3.4 and stack protector, it produces bad code. normal -O is fine, though. cheers s

Re: CPUTYPE and gcc optimizations

2007-02-11 Thread Alexander Shiryaev
Petr Janda wrote: Hey everyone, I'm wondering if its good o set CPUTYPE for extra optimization, or if its ok to set any other extra compiler optimizations other than the default. Thanks, Petr good page! http://gentoo-wiki.com/Safe_Cflags best regards, Alexander

Re: CPUTYPE and gcc optimizations

2007-02-11 Thread Steve Mynott
It depends whether it appears to speed up the code you are compiling up or not! And the only way you will know this is if you try it. Although benchmarks tend to lie anyway and "magic bullets" not exist. The best way of doing this, at least for packages, would be to port /usr/pkgsrc/devel/cpufl

CPUTYPE and gcc optimizations

2007-02-11 Thread Petr Janda
Hey everyone, I'm wondering if its good o set CPUTYPE for extra optimization, or if its ok to set any other extra compiler optimizations other than the default. Thanks, Petr