'decent' CFLAGS should not feature -O3. Bug 188619 (branches/2.1.2 r7608)
authorZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 21:25:06 +0000 (21:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 15 Aug 2007 21:25:06 +0000 (21:25 -0000)
svn path=/main/branches/2.1.2.9/; revision=7621

cnf/make.conf.alpha.diff
cnf/make.conf.ppc.diff
cnf/make.conf.sparc.diff
cnf/make.conf.x86-fbsd.diff
cnf/make.conf.x86.diff

index 5fa4ae30b0dde318061342cbf252733b0d8f180c..f0a4e385233ac961bcab4c33b5d48566f1164135 100644 (file)
@@ -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.
index f01a2da3ce07356a1d1bd422f7a6cafc85dd911b..76a97d3c2195168da39264c3e98d24bc41e2102a 100644 (file)
@@ -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):
 +#
index 68c4428293387e7b1eacb3c0fe1a6b2a03518f7c..e73357b0831a2ac1b4754f6a7758a9cb7aa39b40 100644 (file)
@@ -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
index 787bc35268fe5e162d52c9d722399cd7dba9010b..95eeea352208c2cceb23c27ad7c6fb086224208f 100644 (file)
  # Host and optimization settings 
  # ==============================
  #
-@@ -33,10 +43,34 @@
+@@ -33,10 +42,34 @@
  # package (and in some cases the libraries it uses) at default optimizations
  # before reporting errors to developers.
  #
 -# Please refer to the GCC manual for a list of possible values.
 +# -mtune=<cpu-type> means optimize code for the particular type of CPU without
 +# breaking compatibility with other CPUs.
- #
--#CFLAGS="-O2 -pipe"
++#
 +# -march=<cpu-type> means to take full advantage of the ABI and instructions
 +# for the particular CPU; this will break compatibility with older CPUs (for
 +# example, -march=athlon-xp code will not run on a regular Athlon, and
 +# Pentium-M CPU's should not enable sse2 until at least gcc-3.4. Bug 50616. #
 +# ************************************************************************* #
  #
+-#CFLAGS="-O2 -pipe"
 +# 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.
  #CXXFLAGS="${CFLAGS}"
-@@ -61,7 +95,7 @@
+@@ -61,7 +80,7 @@
  # DO NOT PUT ANYTHING BUT YOUR SPECIFIC ~ARCHITECTURE IN THE LIST.
  # IF YOU ARE UNSURE OF YOUR ARCH, OR THE IMPLICATIONS, DO NOT MODIFY THIS.
  #
  
  # Portage Directories
  # ===================
-@@ -279,7 +313,8 @@
+@@ -268,7 +289,8 @@
  #  'notitles'    disables xterm titlebar updates (which contain status info). 
  #  'parallel-fetch'
  #                do fetching in parallel to compilation
 -#  'sandbox'     enables sandboxing when running emerge and ebuild.
 +#  'sandbox'     enables sandboxing when running emerge and ebuild. Doesn't 
 +#                work on *BSD-based systems.
- #  'splitdebug'  Prior to stripping ELF etdyn and etexec files, the debugging
- #                info is stored for later use by various debuggers.  This
- #                feature is disabled by 'nostrip'.  For installation of source
+ #  'strict'      causes portage to react strongly to conditions that are
+ #                potentially dangerous, like missing/incorrect Manifest files.
index 04e48b61e8c1436fb58c14b6d24bfed293a1ed0d..3e9594abba36847aac146fbf633fc45b8b825468 100644 (file)
@@ -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.