blob: c6601f697852e9d7b63f9feea95662798edf46c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
diff -Naur gcc-4.2.3.orig/gcc/config/i386/crtfastmath.c gcc-4.2.3/gcc/config/i386/crtfastmath.c
--- gcc-4.2.3.orig/gcc/config/i386/crtfastmath.c 2008-02-05 11:26:52.724719808 -0800
+++ gcc-4.2.3/gcc/config/i386/crtfastmath.c 2008-02-05 11:27:16.337719080 -0800
@@ -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))
#ifndef __x86_64__
/* The i386 ABI only requires 4-byte stack alignment, so this is necessary
@@ -81,22 +98,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));
|