[SM-Commit] GIT changes to master grimoire by David Brown (90ec0a6ddfef7fb684384c35b2d83f24dff4c0d9)

David Brown scm at sourcemage.org
Sun Apr 15 20:30:22 EDT 2007


GIT changes to master grimoire by David Brown <dmlb2000 at gmail.com>:

 gnu/gcc/BUILD   |    4 ++++
 gnu/gcc/HISTORY |    3 +++
 2 files changed, 7 insertions(+)

New commits:
commit 90ec0a6ddfef7fb684384c35b2d83f24dff4c0d9
Author: David Brown <dmlb2000 at gmail.com>
Commit: David Brown <dmlb2000 at gmail.com>

    gcc exchange -Os for -O2 for since gcc doesn't build for some archspecs see bug 13330

diff --git a/gnu/gcc/BUILD b/gnu/gcc/BUILD
index ad3d9c7..4d16d42 100755
--- a/gnu/gcc/BUILD
+++ b/gnu/gcc/BUILD
@@ -11,6 +11,10 @@ if  [[ "$ARCHITECTURE"  ==  "pentium4"  ||
   CXXFLAGS=${CXXFLAGS//-ffast-math/}
 fi  &&
 
+# apparently with some archspecs gcc fails to build with -Os but works with -O2
+# see bug 13330 for more details
+CFLAGS=${CFLAGS/-Os/-O2}
+
 # store CFLAGS and LDFLAGS persistently so they can be read by the other
 # split spells later, see bug #10087
 GCC_CFLAGS="$CFLAGS"                   &&
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index f8c6505..b605ab6 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,3 +1,6 @@
+2007-04-15 David Brown <dmlb2000 at gmail.com>
+	* BUILD: removed -Os in exchange for -O2 (bug 13330)
+
 2007-03-01 Eric Sandall <sandalle at sourcemage.org>
 	* BUILD: -ffast-math also breaks with pentium-m
 



More information about the SM-Commit mailing list