Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Eric Sandall (648c69e43f04995ad2c1488087ddfe290ee910af)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Eric Sandall (648c69e43f04995ad2c1488087ddfe290ee910af)
  • Date: Thu, 4 Jan 2007 13:27:30 -0600

GIT changes to master grimoire by Eric Sandall <sandalle AT sourcemage.org>:

gnu/g++/BUILD | 4 ++++
gnu/g++/HISTORY | 4 ++++
gnu/gcc/BUILD | 3 ++-
gnu/gcc/HISTORY | 12 ++++++------
4 files changed, 16 insertions(+), 7 deletions(-)

New commits:
commit 648c69e43f04995ad2c1488087ddfe290ee910af
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

Fix compiling gcc and g++ with -ffast-math on pentium4 architecture

commit 0da986ac76f2817369a900da13bd0066de46d269
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

Revert "g++ will segfault on pentium4 machines if gcc is built with
-ffast-math. Should I increment PATCHLEVEL? ;)"

This reverts commit a2e4d970c5f7b9e794c3e42d3e420d796e9e5504.

Impartial fix, gcc still uses CXXFLAGS for some reason and C++ apps
segfault

diff --git a/gnu/g++/BUILD b/gnu/g++/BUILD
index d1832f5..f1c3ce1 100755
--- a/gnu/g++/BUILD
+++ b/gnu/g++/BUILD
@@ -6,6 +6,10 @@ persistent_read gcc GCC_NOLIB64 GCC_
persistent_read gcc GCC_CFLAGS CFLAGS &&
persistent_read gcc GCC_LDFLAGS LDFLAGS &&

+if [[ "$ARCHITECTURE" == "pentium4" ]]; then
+ CXXFLAGS=${CXXFLAGS//-ffast-math/}
+fi &&
+
sedit "s/lib64/lib/" gcc/config/i386/linux64.h &&

if [[ "$GCC_NOLIB64" == 'y' ]]; then
diff --git a/gnu/g++/HISTORY b/gnu/g++/HISTORY
index b721a55..70135ad 100644
--- a/gnu/g++/HISTORY
+++ b/gnu/g++/HISTORY
@@ -1,3 +1,7 @@
+2007-01-04 Eric Sandall <eric AT sandall.us>
+ * BUILD: At least on pentium4 architecture, compiling g++ with
+ -ffast-math will cause segfaults in C++ apps (e.g. firefox)
+
2006-05-26 Arwed v. Merkatz <v.merkatz AT gmx.net>
* DETAILS: updated to 4.1.1

diff --git a/gnu/gcc/BUILD b/gnu/gcc/BUILD
index 1e867bb..390c049 100755
--- a/gnu/gcc/BUILD
+++ b/gnu/gcc/BUILD
@@ -6,7 +6,8 @@ if [[ "$GCC_NOLIB64" == 'y' ]]; then
fi &&

if [[ "$ARCHITECTURE" == "pentium4" ]]; then
- CFLAGS=${CFLAGS/-ffast-math/}
+ CFLAGS=${CFLAGS//-ffast-math/}
+ CXXFLAGS=${CXXFLAGS//-ffast-math/}
fi &&

# store CFLAGS and LDFLAGS persistently so they can be read by the other
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 53562b7..ffb4d75 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,7 +1,7 @@
-2007-01-01 Eric Sandall <eric AT sandall.us>
- * BUILD: g++ 4.1.1 compilation segfaults if gcc is built with
- -ffast-math, at least on pentium4 architecture, so disabling
- -ffast-math on pentium4.
+2007-01-04 Eric Sandall <eric AT sandall.us>
+ * BUILD: At least on pentium4 architecture, compiling gcc with
+ -ffast-math in CFLAGS *or* CXXFLAGS will cause some (e.g. firefox)
+ C++ apps to segfault

2006-12-28 David Kowis <dkowis AT shlrm.org>
* PRE_BUILD: added a patch for a -ffast-math bug
@@ -31,7 +31,7 @@

2006-03-01 Treeve Jelbert <treeve01 AT oi.be>
* DETAILS: upgrade to 4.1.0
- * WIP: added, as install fails -
+ * WIP: added, as install fails -
can't find a usable gcc as it tries to recompile libcpp

2006-03-10 David Brown <dmlb2000 AT gmail.com>
@@ -48,7 +48,7 @@
* DETAILS: PATCHLEVEL++

2006-02-12 George Sherwood <george AT beernabeer.com>
- * volatiles, REPAIR^none^volatiles: Added to prevent cleanse
+ * volatiles, REPAIR^none^volatiles: Added to prevent cleanse
failing on chainges to specs file.

2006-02-08 Eric Sandall <eric AT sandall.us>



  • [SM-Commit] GIT changes to master grimoire by Eric Sandall (648c69e43f04995ad2c1488087ddfe290ee910af), Eric Sandall, 01/04/2007

Archive powered by MHonArc 2.6.24.

Top of Page