[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r5575 - in glibc-package/trunk/debian: . patches patches/kfreebsd



Author: ps-guest
Date: 2013-05-10 15:28:31 +0000 (Fri, 10 May 2013)
New Revision: 5575

Added:
   glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
   glibc-package/trunk/debian/patches/series.kfreebsd-amd64
   glibc-package/trunk/debian/patches/series.kfreebsd-i386
Log:
patches/kfreebsd/local-linuxthreads-ctype_init.diff: follow upstream changes in ctype initialization
update kfreebsd/local-sysdeps.diff



Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2013-05-10 10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/changelog	2013-05-10 15:28:31 UTC (rev 5575)
@@ -31,7 +31,9 @@
   * patches/kfreebsd/local-linuxthreads-stackguard.diff: handle elf subdir
     removal
   * patches/kfreebsd/local-freopen.diff: support architecture without dup3()
-  * kfreebsd/local-sysdeps.diff: update to revision 4426 (from glibc-bsd).
+  * patches/kfreebsd/local-linuxthreads-ctype_init.diff: follow upstream
+    changes in ctype initialization
+  * kfreebsd/local-sysdeps.diff: update to revision 4427 (from glibc-bsd).
 
  -- Adam Conrad <adconrad@0c3.net>  Tue, 07 May 2013 13:58:05 -0600
 

Added: glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff
===================================================================
--- glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-linuxthreads-ctype_init.diff	2013-05-10 15:28:31 UTC (rev 5575)
@@ -0,0 +1,24 @@
+--- a/linuxthreads/manager.c
++++ b/linuxthreads/manager.c
+@@ -127,6 +127,10 @@
+ #ifdef INIT_THREAD_SELF
+   INIT_THREAD_SELF(self, 1);
+ #endif
++
++  /* Initialize pointers to locale data.  */
++  __ctype_init ();
++
+ #if !(USE_TLS && HAVE___THREAD)
+   /* Set the error variable.  */
+   self->p_errnop = &self->p_errno;
+@@ -297,6 +301,10 @@
+                            SCHED_OTHER, &default_params);
+     }
+ #endif    
++
++  /* Initialize pointers to locale data.  */
++  __ctype_init ();
++
+ #if !(USE_TLS && HAVE___THREAD)
+   /* Initialize thread-locale current locale to point to the global one.
+      With __thread support, the variable's initializer takes care of this.  */

Modified: glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff
===================================================================
--- glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff	2013-05-10 10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/kfreebsd/local-sysdeps.diff	2013-05-10 15:28:31 UTC (rev 5575)
@@ -27835,16 +27835,16 @@
 +		- exit will call _exit in near future
 +	*/
 +
++	movq %rbx, %rdi		/* argument for either syscall */
 +	testq %rbx, %rbx	/* If it is zero exit.  */
 +	jz 2f
 +
-+	movq %rbx, %rdi
 +	call	JUMPTARGET(__setcontext)
 +	/* If this returns (which can happen if the syscall fails) we'll
 +	   exit the program with the return error value (-1).  */
 +
-+2:	movq %rax, %rdi
-+	call	HIDDEN_JUMPTARGET(exit)
++	movq %rax, %rdi
++2:	call	HIDDEN_JUMPTARGET(exit)
 +	/* The 'exit' call should never return.  In case it does cause
 +	   the process to terminate.  */
 +	hlt

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-amd64
===================================================================
--- glibc-package/trunk/debian/patches/series.kfreebsd-amd64	2013-05-10 10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-amd64	2013-05-10 15:28:31 UTC (rev 5575)
@@ -13,3 +13,4 @@
 kfreebsd/local-no-pldd.diff
 kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-linuxthreads-stackguard.diff
+kfreebsd/local-linuxthreads-ctype_init.diff

Modified: glibc-package/trunk/debian/patches/series.kfreebsd-i386
===================================================================
--- glibc-package/trunk/debian/patches/series.kfreebsd-i386	2013-05-10 10:29:43 UTC (rev 5574)
+++ glibc-package/trunk/debian/patches/series.kfreebsd-i386	2013-05-10 15:28:31 UTC (rev 5575)
@@ -13,3 +13,4 @@
 kfreebsd/local-no-pldd.diff
 kfreebsd/local-nscd-nosendfile-fix.diff
 kfreebsd/local-linuxthreads-stackguard.diff
+kfreebsd/local-linuxthreads-ctype_init.diff


Reply to: