From a38252f346224254b7ea61c760c55ec7c07f312f Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Sun, 12 Aug 2007 18:18:35 +0000 Subject: 'decent' CFLAGS should not feature -O3. Bug 188619 svn path=/main/trunk/; revision=7596 --- cnf/make.conf.alpha.diff | 4 ++-- cnf/make.conf.arm.diff | 2 +- cnf/make.conf.ppc.diff | 6 +++--- cnf/make.conf.ppc64.diff | 2 +- cnf/make.conf.sh.diff | 2 +- cnf/make.conf.sparc.diff | 4 ++-- cnf/make.conf.x86-fbsd.diff | 4 ++-- cnf/make.conf.x86.diff | 4 ++-- 8 files changed, 14 insertions(+), 14 deletions(-) (limited to 'cnf') diff --git a/cnf/make.conf.alpha.diff b/cnf/make.conf.alpha.diff index 5fa4ae30b..f0a4e3852 100644 --- a/cnf/make.conf.alpha.diff +++ b/cnf/make.conf.alpha.diff @@ -33,8 +33,8 @@ # +# Decent examples: +# -+#CFLAGS="-mcpu=ev67 -O3 -pipe " -+CFLAGS="-mcpu=ev5 -O3 -pipe " ++#CFLAGS="-mcpu=ev67 -O2 -pipe " ++CFLAGS="-mcpu=ev5 -O2 -pipe " + # If you set a CFLAGS above, then this line will set your default C++ flags to # the same settings. diff --git a/cnf/make.conf.arm.diff b/cnf/make.conf.arm.diff index 6c1e7f173..9d84ca302 100644 --- a/cnf/make.conf.arm.diff +++ b/cnf/make.conf.arm.diff @@ -35,7 +35,7 @@ +# example, -march=xscale code will not run on a StrongARM 11x0, and +# -march=strongarm110 code will not run on a regular StrongARM). +# -+# Don't use -O3. Even -O2 may be risky in some cases. ++# Don't use -O2. Even -O2 may be risky in some cases. +# +# For a full listing of supported CPU models, please refer to the GCC website: +# http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/ARM-Options.html diff --git a/cnf/make.conf.ppc.diff b/cnf/make.conf.ppc.diff index f01a2da3c..2be03cb42 100644 --- a/cnf/make.conf.ppc.diff +++ b/cnf/make.conf.ppc.diff @@ -39,10 +39,10 @@ +# +# The newer gcc has a stricter aliasing ruleset that makes type punned +# expression faulty compiled if -fstrict-aliasing is enabled. -+# That option is implied by -O2 -Os and -O3. Make SURE you don't have that ++# That option is implied by -O2 -Os and -O2. Make SURE you don't have that +# option enabled by adding -fno-strict-aliasing to your CFLAGS and CXXFLAGS +# -+# Long term testing has shown that -O3 opts can be unreliable on G4's but work ++# Long term testing has shown that -O2 opts can be unreliable on G4's but work +# on G3 series processors or earlier. +# +# The following is the suggested CFLAGS for a generic G4 cpu @@ -55,7 +55,7 @@ +# all G3 and pre machines. (note it will not hurt pre G3 machines either to +# use this mcpu option as it is the default for gcc 3.2.x anyway) +# -+#CFLAGS="-O3 -pipe -mcpu=G3 -fno-strict-aliasing" ++#CFLAGS="-O2 -pipe -mcpu=G3 -fno-strict-aliasing" + +# Recommended settings for GCC 2.95.3 only (Gentoo 1.2 or older): +# diff --git a/cnf/make.conf.ppc64.diff b/cnf/make.conf.ppc64.diff index 2aaec01f0..bafad2167 100644 --- a/cnf/make.conf.ppc64.diff +++ b/cnf/make.conf.ppc64.diff @@ -42,7 +42,7 @@ +# feature. Note: you should also include -mabi=altivec flag if using this option. # -#CFLAGS="-O2 -pipe" -+# -O3 for the most part seems ok but should be used with caution as ++# -O2 for the most part seems ok but should be used with caution as +# for instance app-editors/vim has problems if it is used. -O2 is a +# good selection. +# diff --git a/cnf/make.conf.sh.diff b/cnf/make.conf.sh.diff index 5032c85ee..774c7b7f6 100644 --- a/cnf/make.conf.sh.diff +++ b/cnf/make.conf.sh.diff @@ -31,7 +31,7 @@ +# your CHOST so if you are using "sh4-unknown-linux-gnu", you should have +# -m4 below. # -+# Don't use -O3. Even -O2 may be risky in some cases. ++# Don't use -O2. Even -O2 may be risky in some cases. +# +# For a full listing of supported CPU models, please refer to the GCC website: +# http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/SH-Options.html diff --git a/cnf/make.conf.sparc.diff b/cnf/make.conf.sparc.diff index 68c442829..e73357b08 100644 --- a/cnf/make.conf.sparc.diff +++ b/cnf/make.conf.sparc.diff @@ -48,8 +48,8 @@ +# +# Decent examples: +# -+#CFLAGS="-mcpu=supersparc -O3 -pipe" -+#CFLAGS="-mcpu=ultrasparc -O3 -pipe" ++#CFLAGS="-mcpu=supersparc -O2 -pipe" ++#CFLAGS="-mcpu=ultrasparc -O2 -pipe" +#CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe" + # If you set a CFLAGS above, then this line will set your default C++ flags to diff --git a/cnf/make.conf.x86-fbsd.diff b/cnf/make.conf.x86-fbsd.diff index 787bc3526..c2cf7cb71 100644 --- a/cnf/make.conf.x86-fbsd.diff +++ b/cnf/make.conf.x86-fbsd.diff @@ -48,8 +48,8 @@ # +# Decent examples: +# -+#CFLAGS="-mtune=athlon-xp -O3 -pipe" -+#CFLAGS="-march=pentium3 -O3 -pipe" ++#CFLAGS="-mtune=athlon-xp -O2 -pipe" ++#CFLAGS="-march=pentium3 -O2 -pipe" + # If you set a CFLAGS above, then this line will set your default C++ flags to # the same settings. diff --git a/cnf/make.conf.x86.diff b/cnf/make.conf.x86.diff index 04e48b61e..3e9594abb 100644 --- a/cnf/make.conf.x86.diff +++ b/cnf/make.conf.x86.diff @@ -79,8 +79,8 @@ +# NOTE: the -On optimization levels are set with the letter O, not -0 (zero). +# +# Decent examples: -+#CFLAGS="-mcpu=athlon-xp -O3 -pipe" -+#CFLAGS="-march=pentium3 -O3 -pipe" ++#CFLAGS="-mcpu=athlon-xp -O2 -pipe" ++#CFLAGS="-march=pentium3 -O2 -pipe" + # If you set a CFLAGS above, then this line will set your default C++ flags to # the same settings. -- cgit v1.2.3-1-g7c22