sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by David Kowis (b5d2e770b279ef8e439328f6b1f7b23f58d3d3b8)
- From: David Kowis <scm AT mail.sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by David Kowis (b5d2e770b279ef8e439328f6b1f7b23f58d3d3b8)
- Date: Thu, 28 Dec 2006 10:14:28 -0600
GIT changes to master grimoire by David Kowis <dkowis@melchiah.(none)>:
gnu/gcc/DETAILS | 2 -
gnu/gcc/HISTORY | 5 +++
gnu/gcc/PRE_BUILD | 5 ++-
gnu/gcc/gcc-4.1.1-ffast-math.patch | 51
+++++++++++++++++++++++++++++++++++++
4 files changed, 61 insertions(+), 2 deletions(-)
New commits:
commit b5d2e770b279ef8e439328f6b1f7b23f58d3d3b8
Author: David Kowis <dkowis AT shlrm.org>
Commit: David Kowis <dkowis@melchiah.(none)>
gcc
Adding a patch to fix the -ffast-math bug in gcc
Patch will not be useful anymore when gcc 4.1.2 comes out
diff --git a/gnu/gcc/DETAILS b/gnu/gcc/DETAILS
index bde9ce6..5d9015f 100755
--- a/gnu/gcc/DETAILS
+++ b/gnu/gcc/DETAILS
@@ -9,7 +9,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/gcc-$V
WEB_SITE=http://gcc.gnu.org/
ENTERED=20040420
DOCS="$DOCS INSTALL"
- PATCHLEVEL=1
+ PATCHLEVEL=2
KEYWORDS="compiler"
SHORT="the GNU C compiler"
cat << EOF
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index 98c8cbc..8ef9999 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -1,3 +1,8 @@
+2006-12-28 David Kowis <dkowis AT shlrm.org>
+ * PRE_BUILD: added a patch for a -ffast-math bug
+ * DETAILS: incremented PATCHLEVEL
+ * gcc-4.1.1-ffast-math.patch: added
+
2006-10-26 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* INSTALL: use TRACK_ROOT when linking #9163
diff --git a/gnu/gcc/PRE_BUILD b/gnu/gcc/PRE_BUILD
index 2a23a1a..0b6e506 100755
--- a/gnu/gcc/PRE_BUILD
+++ b/gnu/gcc/PRE_BUILD
@@ -3,4 +3,7 @@ mk_source_dir $SOURCE_DIRECTORY.bld &&
cd $SOURCE_DIRECTORY &&
# see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26539 for the rationale for
# the below
-sedit 's/^-include/#\0/' libcpp/Makefile.in
+sedit 's/^-include/#\0/' libcpp/Makefile.in &&
+
+#apply the GCC 4.1.1 fast-math fix
+patch -p1 < $SPELL_DIRECTORY/gcc-4.1.1-ffast-math.patch
diff --git a/gnu/gcc/gcc-4.1.1-ffast-math.patch
b/gnu/gcc/gcc-4.1.1-ffast-math.patch
new file mode 100644
index 0000000..6c47d9c
--- /dev/null
+++ b/gnu/gcc/gcc-4.1.1-ffast-math.patch
@@ -0,0 +1,51 @@
+#http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch?rev=1.1&view=markup
+# credit goes to a developer from gentoo
+--- gcc-4.1.1/gcc/config/i386/crtfastmath.c
++++ gcc-4.1.1/gcc/config/i386/crtfastmath.c
+@@ -37,6 +37,23 @@
+ #define FXSAVE (1 << 24)
+ #define SSE (1 << 25)
+
++struct
++{
++ unsigned short int cwd;
++ unsigned short int swd;
++ unsigned short int twd;
++ unsigned short int fop;
++ long int fip;
++ long int fcs;
++ long int foo;
++ long int fos;
++ long int mxcsr;
++ long int mxcsr_mask;
++ long int st_space[32];
++ long int xmm_space[32];
++ long int padding[56];
++} __attribute__ ((aligned (16))) fxsave;
++
+ static void __attribute__((constructor))
+ set_fast_math (void)
+ {
+@@ -75,22 +92,6 @@
+ if (edx & FXSAVE)
+ {
+ /* Check if DAZ is available. */
+- struct
+- {
+- unsigned short int cwd;
+- unsigned short int swd;
+- unsigned short int twd;
+- unsigned short int fop;
+- long int fip;
+- long int fcs;
+- long int foo;
+- long int fos;
+- long int mxcsr;
+- long int mxcsr_mask;
+- long int st_space[32];
+- long int xmm_space[32];
+- long int padding[56];
+- } __attribute__ ((aligned (16))) fxsave;
+
+ __builtin_memset (&fxsave, 0, sizeof (fxsave));
+
- [SM-Commit] GIT changes to master grimoire by David Kowis (b5d2e770b279ef8e439328f6b1f7b23f58d3d3b8), David Kowis, 12/28/2006
Archive powered by MHonArc 2.6.24.