Author: aurel32
Date: 2008-05-10 18:17:24 +0000 (Sat, 10 May 2008)
New Revision: 2925

Added:
   glibc-package/trunk/debian/patches/hppa/submitted-fesetenv.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series
Log:
  * patches/hppa/submitted-fesetenv.diff: fix fesetenv() on hppa with 
    gcc-4.3.



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog        2008-05-10 17:12:58 UTC (rev 
2924)
+++ glibc-package/trunk/debian/changelog        2008-05-10 18:17:24 UTC (rev 
2925)
@@ -29,6 +29,8 @@
     Closes: #480295.
   * patches/any/submitted-user_h.diff: don't include linux/user.h. Closes: 
     #480093.
+  * patches/hppa/submitted-fesetenv.diff: fix fesetenv() on hppa with 
+    gcc-4.3.
 
   [ Pierre Habouzit ]
   * Add any/cvs-strerror_r.diff to make strerror_r actually thread safe.
@@ -38,7 +40,7 @@
   * patches/hurd-i386/cvs-termios.diff: new patch to revamp ioctls/termios
   bits.
 
- -- Aurelien Jarno <[EMAIL PROTECTED]>  Sat, 10 May 2008 18:30:09 +0200
+ -- Aurelien Jarno <[EMAIL PROTECTED]>  Sat, 10 May 2008 20:16:39 +0200
 
 glibc (2.7-10) unstable; urgency=low
 

Added: glibc-package/trunk/debian/patches/hppa/submitted-fesetenv.diff
===================================================================
--- glibc-package/trunk/debian/patches/hppa/submitted-fesetenv.diff             
                (rev 0)
+++ glibc-package/trunk/debian/patches/hppa/submitted-fesetenv.diff     
2008-05-10 18:17:24 UTC (rev 2925)
@@ -0,0 +1,30 @@
+2008-05-10  Aurelien Jarno  <[EMAIL PROTECTED]>
+
+       * sysdeps/hppa/fpu/fesetenv.c: bufptr is always read, temp is
+       read while writing back status word.
+
+Index: ports/sysdeps/hppa/fpu/fesetenv.c
+===================================================================
+RCS file: /cvs/glibc/ports/sysdeps/hppa/fpu/fesetenv.c,v
+retrieving revision 1.5
+diff -u -d -p -r1.5 fesetenv.c
+--- ports/sysdeps/hppa/fpu/fesetenv.c  21 Apr 2006 00:27:20 -0000      1.5
++++ ports/sysdeps/hppa/fpu/fesetenv.c  10 May 2008 18:02:41 -0000
+@@ -35,7 +35,7 @@ fesetenv (const fenv_t *envp)
+   bufptr = temp.buf;
+   __asm__ (
+          "fstd,ma %%fr0,8(%1)\n"
+-         : "=m" (temp), "+r" (bufptr) : : "%r0");
++         : "=m" (temp) : "r" (bufptr) : "%r0");
+ 
+   temp.env.__status_word &= ~(FE_ALL_EXCEPT
+                           | (FE_ALL_EXCEPT << 27)
+@@ -56,7 +56,7 @@ fesetenv (const fenv_t *envp)
+      is loaded last and T-Bit is enabled. */
+   __asm__ (
+          "fldd,mb -8(%1),%%fr0\n"
+-         : "=m" (temp), "+r" (bufptr) : : "%r0" );
++         : : "m" (temp), "r" (bufptr) : "%r0" );
+ 
+   /* Success.  */
+   return 0;

Modified: glibc-package/trunk/debian/patches/series
===================================================================
--- glibc-package/trunk/debian/patches/series   2008-05-10 17:12:58 UTC (rev 
2924)
+++ glibc-package/trunk/debian/patches/series   2008-05-10 18:17:24 UTC (rev 
2925)
@@ -65,6 +65,7 @@
 hppa/cvs-atomic.diff -p0
 hppa/submitted-atomic_h.diff -p0
 hppa/submitted-fadvise64_64.diff -p0
+hppa/submitted-fesetenv.diff -p0
 hppa/submitted-lt.diff -p0
 hppa/submitted-nptl-carlos.diff -p0
 hppa/submitted-pie.diff 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to