summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPol Vinogradov2014-06-30 13:36:27 -0400
committerRemko van der Vossen2019-05-17 23:32:58 +0200
commitf132b6666d48f0bf97281b76e2b67419abd670ef (patch)
treed26a261921d67d3b29ce5590a071555bb6bb3ad9
parent0d4041fe7b15cd4e5cc38fc232e591e935ad8631 (diff)
gnu/gcc: removed fast math patch
-rw-r--r--gnu/gcc/0002-4.8.0-ffast-math.patch64
-rw-r--r--gnu/gcc/HISTORY4
-rwxr-xr-xgnu/gcc/PRE_BUILD1
3 files changed, 4 insertions, 65 deletions
diff --git a/gnu/gcc/0002-4.8.0-ffast-math.patch b/gnu/gcc/0002-4.8.0-ffast-math.patch
deleted file mode 100644
index d0dcdf9a12..0000000000
--- a/gnu/gcc/0002-4.8.0-ffast-math.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From e63ab6470c6e0d397a5d0daa473599c7d9f5ad62 Mon Sep 17 00:00:00 2001
-From: Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
-Date: Wed, 20 Mar 2013 11:22:37 +0100
-Subject: [PATCH] fix fastmath
-
----
- libgcc/config/i386/crtfastmath.c | 34 ++++++++++++++++++----------------
- 1 file changed, 18 insertions(+), 16 deletions(-)
-
-diff --git a/libgcc/config/i386/crtfastmath.c b/libgcc/config/i386/crtfastmath.c
-index 991f531..44f2ba0 100644
---- a/libgcc/config/i386/crtfastmath.c
-+++ b/libgcc/config/i386/crtfastmath.c
-@@ -50,6 +50,24 @@ sigill_hdlr (int sig __attribute((unused)),
- }
- #endif
-
-+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))
- #ifndef __x86_64__
- /* The i386 ABI only requires 4-byte stack alignment, so this is necessary
-@@ -94,22 +112,6 @@ set_fast_math (void)
- if (edx & bit_FXSAVE)
- {
- /* Check if DAZ is available. */
-- struct
-- {
-- unsigned short cwd;
-- unsigned short swd;
-- unsigned short twd;
-- unsigned short fop;
-- unsigned int fip;
-- unsigned int fcs;
-- unsigned int foo;
-- unsigned int fos;
-- unsigned int mxcsr;
-- unsigned int mxcsr_mask;
-- unsigned int st_space[32];
-- unsigned int xmm_space[32];
-- unsigned int padding[56];
-- } __attribute__ ((aligned (16))) fxsave;
-
- /* This is necessary since some implementations of FXSAVE
- do not modify reserved areas within the image. */
---
-1.8.1.3
-
diff --git a/gnu/gcc/HISTORY b/gnu/gcc/HISTORY
index b1286d655d..7fa4d54e81 100644
--- a/gnu/gcc/HISTORY
+++ b/gnu/gcc/HISTORY
@@ -5,6 +5,10 @@
* PRE_BUILD: patch for freetype2 headers
* classpath-ft2include.patch: added said patch
+2014-06-30 Pol Vinogradov <vin.public@gmail.com>
+ * PRE_BUILD, 0002-4.8.0-ffast-math.patch: removed the patch, causes
+ undefined reference to fxsave
+
2014-06-15 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* BUILD: fix breakage in construction of OPTS
* DEPENDS: fix dependency on xproto
diff --git a/gnu/gcc/PRE_BUILD b/gnu/gcc/PRE_BUILD
index fee0ffa8b0..590cfa45bb 100755
--- a/gnu/gcc/PRE_BUILD
+++ b/gnu/gcc/PRE_BUILD
@@ -47,7 +47,6 @@ if list_find "$GCC_COMPILER" "go"; then
patch -p1 < "$SPELL_DIRECTORY/0003-fix-header-generation-for-libgo.patch"
fi &&
-patch -p1 < "$SPELL_DIRECTORY/0002-4.8.0-ffast-math.patch" &&
patch -p1 < "$SPELL_DIRECTORY/0001-remove-libffi.patch" &&
patch -p0 < "$SPELL_DIRECTORY/gcc-4.8-filename-output.patch" &&
patch -p1 < "$SPELL_DIRECTORY/gcc-4.9-tree-ssa-threadedge.patch" &&