summaryrefslogtreecommitdiff
blob: c9288a45c61fd19dfc049996b5fb1497d3166c5a (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--- lib/msun/i387/fenv.c.orig	2007-01-05 04:15:26 -0300
+++ lib/msun/i387/fenv.c	2008-06-14 00:49:30 -0300
@@ -152,7 +152,8 @@
 int
 feupdateenv(const fenv_t *envp)
 {
-	int mxcsr, status;
+	int mxcsr;
+	short status;
 
 	__fnstsw(&status);
 	if (__HAS_SSE())
--- lib/msun/i387/fenv.h.orig	2007-01-06 18:46:23 -0300
+++ lib/msun/i387/fenv.h	2008-06-14 01:06:40 -0300
@@ -134,7 +134,8 @@
 static __inline int
 fegetexceptflag(fexcept_t *__flagp, int __excepts)
 {
-	int __mxcsr, __status;
+	int __mxcsr;
+	short __status;
 
 	__fnstsw(&__status);
 	if (__HAS_SSE())
@@ -151,7 +152,8 @@
 static __inline int
 fetestexcept(int __excepts)
 {
-	int __mxcsr, __status;
+	int __mxcsr;
+	short __status;
 
 	__fnstsw(&__status);
 	if (__HAS_SSE())
--- lib/msun/amd64/fenv.c.orig	2007-01-05 04:15:26 -0300
+++ lib/msun/amd64/fenv.c	2008-06-14 01:02:41 -0300
@@ -101,7 +101,8 @@
 int
 feupdateenv(const fenv_t *envp)
 {
-	int mxcsr, status;
+	int mxcsr;
+	short status;
 
 	__fnstsw(&status);
 	__stmxcsr(&mxcsr);
--- lib/msun/amd64/fenv.h.orig	2007-01-06 18:46:23 -0300
+++ lib/msun/amd64/fenv.h	2008-06-14 01:08:23 -0300
@@ -110,7 +110,8 @@
 static __inline int
 fegetexceptflag(fexcept_t *__flagp, int __excepts)
 {
-	int __mxcsr, __status;
+	int __mxcsr;
+	short __status;
 
 	__stmxcsr(&__mxcsr);
 	__fnstsw(&__status);
@@ -124,7 +125,8 @@
 static __inline int
 fetestexcept(int __excepts)
 {
-	int __mxcsr, __status;
+	int __mxcsr;
+	short __status;
 
 	__stmxcsr(&__mxcsr);
 	__fnstsw(&__status);