Add a new patch to make glibc-es build with latest binutils (starting with 2.18.50.0.4).
/trunk/patches/glibc/2.5.1/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
/trunk/patches/glibc/2.5/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
/trunk/patches/glibc/2.6.1/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
/trunk/patches/glibc/2.6/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
/trunk/patches/glibc/2.3.6/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
/trunk/patches/glibc/2.7/190-use_short_for_fnstsw.patch | 18 18 0 0 ++++++++++++++++++
6 files changed, 108 insertions(+)
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/glibc/2.3.6/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
1.3 @@ -0,0 +1,18 @@
1.4 +Original patch from H.J. Lu, as reported there:
1.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
1.6 +
1.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
1.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
1.9 +
1.10 +diff -dur glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
1.11 +--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
1.12 ++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:56:14.000000000 +0200
1.13 +@@ -26,7 +26,7 @@
1.14 + int
1.15 + fetestexcept (int excepts)
1.16 + {
1.17 +- int temp;
1.18 ++ short temp;
1.19 + int xtemp = 0;
1.20 +
1.21 + /* Get current exceptions. */
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/patches/glibc/2.5.1/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
2.3 @@ -0,0 +1,18 @@
2.4 +Original patch from H.J. Lu, as reported there:
2.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
2.6 +
2.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
2.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
2.9 +
2.10 +diff -dur glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
2.11 +--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
2.12 ++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:56:14.000000000 +0200
2.13 +@@ -26,7 +26,7 @@
2.14 + int
2.15 + fetestexcept (int excepts)
2.16 + {
2.17 +- int temp;
2.18 ++ short temp;
2.19 + int xtemp = 0;
2.20 +
2.21 + /* Get current exceptions. */
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/patches/glibc/2.5/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
3.3 @@ -0,0 +1,18 @@
3.4 +Original patch from H.J. Lu, as reported there:
3.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
3.6 +
3.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
3.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
3.9 +
3.10 +diff -dur glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
3.11 +--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
3.12 ++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:56:14.000000000 +0200
3.13 +@@ -26,7 +26,7 @@
3.14 + int
3.15 + fetestexcept (int excepts)
3.16 + {
3.17 +- int temp;
3.18 ++ short temp;
3.19 + int xtemp = 0;
3.20 +
3.21 + /* Get current exceptions. */
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/patches/glibc/2.6.1/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
4.3 @@ -0,0 +1,18 @@
4.4 +Original patch from H.J. Lu, as reported there:
4.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
4.6 +
4.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
4.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
4.9 +
4.10 +diff -dur glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
4.11 +--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
4.12 ++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:56:14.000000000 +0200
4.13 +@@ -26,7 +26,7 @@
4.14 + int
4.15 + fetestexcept (int excepts)
4.16 + {
4.17 +- int temp;
4.18 ++ short temp;
4.19 + int xtemp = 0;
4.20 +
4.21 + /* Get current exceptions. */
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/patches/glibc/2.6/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
5.3 @@ -0,0 +1,18 @@
5.4 +Original patch from H.J. Lu, as reported there:
5.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
5.6 +
5.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
5.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
5.9 +
5.10 +diff -dur glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c
5.11 +--- glibc-2.6.1.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
5.12 ++++ glibc-2.6.1/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:56:14.000000000 +0200
5.13 +@@ -26,7 +26,7 @@
5.14 + int
5.15 + fetestexcept (int excepts)
5.16 + {
5.17 +- int temp;
5.18 ++ short temp;
5.19 + int xtemp = 0;
5.20 +
5.21 + /* Get current exceptions. */
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/patches/glibc/2.7/190-use_short_for_fnstsw.patch Tue Jun 24 13:15:57 2008 +0000
6.3 @@ -0,0 +1,18 @@
6.4 +Original patch from H.J. Lu, as reported there:
6.5 +http://www.nabble.com/PATCH:-Use-short-for-fnstsw-td14775171.html
6.6 +
6.7 +fnstsw stores 16bit into %ax. The upper 16bit of %eax is unchanged.
6.8 +The new assembler (binutils-2.18.50.0.4 and up) will disallow "fnstsw %eax".
6.9 +
6.10 +diff -dur glibc-2.7.orig/sysdeps/i386/fpu/ftestexcept.c glibc-2.7/sysdeps/i386/fpu/ftestexcept.c
6.11 +--- glibc-2.7.orig/sysdeps/i386/fpu/ftestexcept.c 2004-03-05 11:14:48.000000000 +0100
6.12 ++++ glibc-2.7/sysdeps/i386/fpu/ftestexcept.c 2008-06-24 10:54:43.000000000 +0200
6.13 +@@ -26,7 +26,7 @@
6.14 + int
6.15 + fetestexcept (int excepts)
6.16 + {
6.17 +- int temp;
6.18 ++ short temp;
6.19 + int xtemp = 0;
6.20 +
6.21 + /* Get current exceptions. */