summaryrefslogtreecommitdiff
path: root/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-07-26 20:07:54 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-07-26 20:07:54 +0000
commitf42b906bc4359d4a18b51fefa3423716c0af30a8 (patch)
treee55f7294941844761601fffa104ab9e51321e16d /packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch
parent38c0392e6849f181119aef9b231e97c64a77e1d4 (diff)
parent7cff782b984312bb9d3226d9e44cb2b9a9401a81 (diff)
merge of '3f2ba26557bb371913a11a48aa9bcb4f58fd6fe5'
and '4a6eea520cb0bded1313d57689af2993701d4e87'
Diffstat (limited to 'packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch')
-rw-r--r--packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch b/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch
new file mode 100644
index 0000000000..6979229279
--- /dev/null
+++ b/packages/glibc/files/glibc-2.6.1-use-short-for-fnstsw.patch
@@ -0,0 +1,30 @@
+Source: http://sourceware.org/ml/libc-alpha/2008-01/msg00017.html
+
+I am checking this x86 assembler patch:
+
+http://sourceware.org/ml/binutils/2008-01/msg00148.html
+
+to check operand size. fnstsw stores 16bit into %ax. The upper
+16bit of %eax is unchanged. The new assembler will disallow
+"fnstsw %eax". Here is a patch for glibc.
+
+
+H.J.
+
+---
+ sysdeps/i386/fpu/ftestexcept.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
+===================================================================
+--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2008-07-19 11:00:45.000000000 -0700
++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-07-19 11:01:25.000000000 -0700
+@@ -26,7 +26,7 @@
+ int
+ fetestexcept (int excepts)
+ {
+- int temp;
++ short temp;
+ int xtemp = 0;
+
+ /* Get current exceptions. */